[R] Stacked Barchart as relative share
Geophagus
fh at retposto.net
Thu Nov 8 12:23:06 CET 2012
Hi @ all,
I'm looking for a solution to plot a dataframe as a stacked bar chart like
on this picture:
http://4.bp.blogspot.com/_79SognVSu7A/S6OtzgksPSI/AAAAAAAABrw/-IuFNewdZFE/s400/Stacked%2BBar%2BChart.png
My dataframe
example2.csv <http://r.789695.n4.nabble.com/file/n4648854/example2.csv>
My questions:
Is there a standard function to convert the values to 100 percent relate to
realize the stacked chart or does a library generate the complete plot
inculding an automatically conversion?
I need the states (WA, MT, ND etc.) on the x-axis and the distribution of
the values (related to 100 %) on the y-axis (stacked) to compare the shares
per state.
I'm hoping for help from you. Thanks a lot.
GeO
--
View this message in context: http://r.789695.n4.nabble.com/Stacked-Barchart-as-relative-share-tp4648854.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list