[R] modifying this barplot

Juliet Hannah juliet.hannah at gmail.com
Mon Sep 15 22:06:49 CEST 2008

Here is an example barplot that needs some tweaking:

ratios <- data.frame(c(0.05,0.10,0.9),c(0.06,0.15,0.76))
rownames(ratios) <- c("T1","T2","T3")
colnames(ratios) <- c("A1","A2")
ratios <- as.matrix(ratios)
myplot <- barplot2(ratios, beside = TRUE,col = c("blue",
"green","lightcyan"),ylim = c(1,0.0001),log="y",plot.grid = TRUE,

I would like the y axis to range from 1 to 0.0001 (decreasing and not
written in scientific notation), and be on a log10 scale. In addition,
how can I control the position of the legend.

Thanks for your time!


More information about the R-help mailing list