[R] improving barplot output
Bob Green
bgreen at dyson.brisnet.org.au
Sun Nov 19 13:18:51 CET 2006
Hello,
I was hoping for some advice on improving a barplot. Below is the syntax I
have used. I wanted to do two things differently How would I alter the
syntax so that (a) the y-axis finishes at 25 and not 20, and (b) 'past
ideation' and 'pastwk ideation' are coloured blue and 'past attempt' &
'past wk attempt' are coloured red ?
I was also curious as to whether it is possible to insert values into the
respective bars?
>summarizedData = c(24,4,7,1.9)
>theNames = c("Past ideation","Past attempt", "Pastwk idea","Past wk attempt")
>names(summarizedData) = theNames
>barplot(summarizedData, ylab = "percentage", col="dark red")
Any assistance is appreciated,
regards
Bob Green
More information about the R-help
mailing list