私はdo.call
をだましています。"plot"に基づくdo.callセマンティクスの理解
I = iris
do.call(what = "plot", args = c(I$Sepal.Length ~ I$Sepal.Width))
# This seems fine
p = list(x = I$Sepal.Length, y = I$Sepal.Width)
do.call(what = "plot", args = p)
# This looks weird
p1 = list(x = I$Sepal.Length, y = I$Sepal.Width, xlab = "")
do.call(what = "plot", args = p1)
# A bit less weird
p2 = list(x = I$Sepal.Length, y = I$Sepal.Width, xlab = "", ylab = "")
do.call(what = "plot", args = p2)
# And this gives the same as the first do.call
、なぜそれは私がdo.call
を使用しているとき私が得るすべてのこれらの数字をsurpressする軸ラベルを供給しなければならないこと、ありますか?
@ZheyuanLi '='を!。前者は 'plot.formula'を呼び出し、後者の' plot.default'を呼び出します。それが軸ラベルが異なる理由です。 – Roland
いいえ、軸ラベルを参照します。私は彼らがxとyを切り替えるという問題に気づいたとは思わない。 – Roland
私は答えを書くつもりです。 – Roland