J*****n 发帖数: 4859 | 1 plot(x,y) actually gives the scatter plot. But I just want to see x and y's
curve as two time series.
What function I should use?
Thanks. |
m****e 发帖数: 255 | |
k*******a 发帖数: 772 | 3 plot(x,type="l")
lines(y,type="l")
not sure I understand correctly, is this what you want?
y's
【在 J*****n 的大作中提到】 : plot(x,y) actually gives the scatter plot. But I just want to see x and y's : curve as two time series. : What function I should use? : Thanks.
|
J*****n 发帖数: 4859 | 4
say I have two vectors x and y.
I would like to use plot function only.
plot(x)
then plot(y) will give the graphic in the new chart.
What function I should use to let R to plot y in the previous chart without
cleaning the old one.
Thank you.
【在 m****e 的大作中提到】 : lines()?
|
O*****y 发帖数: 222 | 5 plot(x,type="l")
points(y, type="l")
强烈推荐看一下 An introduction to R
without
【在 J*****n 的大作中提到】 : : say I have two vectors x and y. : I would like to use plot function only. : plot(x) : then plot(y) will give the graphic in the new chart. : What function I should use to let R to plot y in the previous chart without : cleaning the old one. : Thank you.
|