[R]How to make the plot when x columns are string list?
Uwe Ligges
ligges at statistik.uni-dortmund.de
Fri Sep 1 08:27:56 CEST 2000
Shawn Lee wrote:
>
> Dear R users:
>
> I have to plot the data set like the following.
> x <- c("05/27/00","06/03/00","08/22/00",...)
> y <- c(10,20,15,...)
>
> But plot(x,y,...) do not work!!
> How can i get the proper plot in this kinds of situation.
> Sorry for kinds of simple question!!
You should try the package "date", available at CRAN.
Example:
library(date)
x <- as.date(c("05/27/2000","06/03/2000","08/22/2000"))
y <- c(10,20,15)
plot(x,y)
Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list