search for: lecturemateri

Displaying 1 result from an estimated 1 matches for "lecturemateri".

Did you mean: lecturemaker
2016 Apr 30
4
Removing NAs from dataframe (for use in Vioplot)
...am using the vioplot library to produce some violin plots. I have an input CSV with columns off irregular length that contain NAs. I want to strip the NAs out and produce a multiple violin plot automatically labelled using the headers. At the moment I do this Code:? ds1 = read.csv("http://www.lecturematerials.co.uk/data/spelling.csv") library(vioplot) y6<-na.omit(ds1$y6) y5<-na.omit(ds1$y5) y4<-na.omit(ds1$y4) y3<-na.omit(ds1$y3) y2<-na.omit(ds1$y2) y1<-na.omit(ds1$y1) vioplot(y6, y5, y4,y3,y2,y1,horizontal=TRUE, names=c("Y6", "Y5","Y4","Y3&qu...