ちょっと触ってみた
ログだけ張り付けておく
x <- 1:10 y <- 1:10 plot(x, y) plot(x, y, xlim=c(10,1)) plot(sin, -pi, 2*pi) plot(sin, -1, 2) plot(sin, -4, 6,log = "y") Warning message: In xy.coords(x, y, xlabel, ylabel, log) : 61 y values <= 0 omitted from logarithmic plot plot(sin, 1, 2,log = "y") plot(sin, 1, 2,log = "x") plot(sin * 2*pi, 0, 1) gauss.density <- function(x) 1/sqrt(2*pi)*exp(-x^2/2) plot(gauss.density,-3,3) sin2pi <- function(x) sin(2*x*pi) plot(sin2pi, 0, 1)
plotの第一引数に渡すものは数値じゃなくて関数とかベクトルなのかなぁ。