Friday, April 5, 2013

RG#12: multiple histograms within a plot

# data
mycol <- c("green ", "blue ", "yellow ")
mydata<- list(rnorm(500, 10,5),rnorm(500, 10, 8),rnorm(500, 15,5) )


# using package plotrix
require(plotrix)
 multhist(mydata, col= mycol)


 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.