Re: [R] plotting longitudinal data with ggplot

2017-03-11 Thread Ulrik Stervbo
You need to set the aesthetic 'group' to something meaningful, probably ID in this case. HTH Ulrik On Fri, 10 Mar 2017, 19:30 Rayt Chiruka, wrote: > i am trying to convert a dataset from wide to long format using package > tidyr- (seems to have been done) > > wen in try

[R] plotting longitudinal data with ggplot

2017-03-10 Thread Rayt Chiruka
i am trying to convert a dataset from wide to long format using package tidyr- (seems to have been done) wen in try and plot the long dataset using ggplot i keep getting errors here is the code *library(tidyr) ht.long<-gather(ray.ht ,age,height,X0:X84,factor_key = TRUE)