[R] multiple-line plot

Greg Snow 538280 at gmail.com
Tue Jul 19 20:46:45 CEST 2016


Most attachments get stripped off, so your data did not make it through.

But try:

matplot(for_jhon$ID, for_jhon[,2:73], type='l')


On Tue, Jul 19, 2016 at 12:24 PM, John Wasige <johnwasige at gmail.com> wrote:
> Dear all,
>
> This is to kindly request for your help. I would like to plot my data.
>
> The R script below gives some plot that is not clear. How can I get a clear
> multiple-line plot. The data is attached herewith.
>
> ##R Script
> for_jhon = read.csv("C:/LVM_share/for_ jhon.csv", header=TRUE, sep=";")
> matplot(for_jhon$ID, cbind(for_jhon[,2:73]))
>
> Thanks for your help
>
> John
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com



More information about the R-help mailing list