[R] How to add marker in Stacked bar plot?

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Jul 11 12:26:42 CEST 2012



On 10.07.2012 05:37, Manish Gupta wrote:
> Hi,
> I am working on stacked bar plot and want to add marker(arrow) in stacked
> bar plot.
>
> DF=data.frame(names=c("tomato", "potato", "cabbage", "sukuma-wiki",
> "terere"), freq=c(7,4,5,8,20))
> barplot(as.matrix(DF[,2]), col=heat.colors(length(DF[,2])), legend=DF[,1],
> xlim=c(0,9), width=2)
>
> http://r.789695.n4.nabble.com/file/n4635946/Screenshot.png .
>
>   Image with marker:
>
> http://r.789695.n4.nabble.com/file/n4635946/marker.png
>
> How can i add marker or arrow for particular stack in graph.

See ?arrow

Uwe Ligges



>
> Regards
>
> --
> View this message in context: http://r.789695.n4.nabble.com/How-to-add-marker-in-Stacked-bar-plot-tp4635946.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list