search for: lfchart

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

2011 Feb 21
3
multiple plots using a loop
...rly new to loops in R, so any help would be greatly appreciated. I have provided an example data set below if required with just 4 factors and adjusted par settings accordingly. Factor <- rep(factor(letters[1:4]), each = 10) Size <- runif(40) * 100 par(mfrow = c(2, 2)) for (i in Factor) { LFchart <- hist(Size[Factor == i], main = i, xlab = c("n =",length(Size[Factor == i])), ylab = "") } P.S. Also just a quick annoying question. My xlab displays: n = 120 I would like it to display: n = 120 but just cant get it to work. Any thoughts. Regar