[R] Change density and angle in barplot
Paul Murrell
p.murrell at auckland.ac.nz
Tue Apr 5 05:20:52 CEST 2005
Hi
Jan Sabee wrote:
> Dear R user,
>
> I want to change each density and angle with symbol "+","-","o","#"
> and "*". How can I do that?
>
> library(gplots)
> barplot2(VADeaths,
> density=c(5,7,11,15,17),
> angle=c(65,-45,45,-45,90),
> col = "black",
> legend = rownames(VADeaths))
> title(main = list("Death Rates in Virginia", font = 4))
There is no general support for pattern fills in R graphics.
If you are really desperate to do this and are prepared to write some
code yourself, please contact me off-list and I can suggest some
starting points.
Paul
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
More information about the R-help
mailing list