[英]Plotting values over time in R
I have a vector of values: b=read.csv('https://dl.dropbox.com/u/22681355/b.csv')
我有一个值向量:
b=read.csv('https://dl.dropbox.com/u/22681355/b.csv')
I would like to plot them with having values 1:2000 on the x-axis representing time and the values of the vector on the y axis. 我想在x轴上以1:2000的值表示时间,在y轴上以矢量的值来绘制它们。
When I plot them using hist(b)
I get the opposite thing with values from 1:2000 on the y axis and the actual values on the x. 当我使用
hist(b)
绘制它们时,我得到了相反的结果,y轴的值是1:2000,x的是实际值。
How can I reverse this? 我该如何扭转呢?
Try barplot(b)
or plot(b,type="b")
instead. 尝试改用
barplot(b)
或plot(b,type="b")
。
(Your link doesn't work for me.) (您的链接对我不起作用。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.