[R] Stacked bar plot of frequency vs time

marcel marcelcurlin at gmail.com
Mon Jul 11 16:36:42 CEST 2011


Hi All,
New to R, but committed. I looked in a number of places but can't figure out
my current problem. I have date of the type:

Time Type1  Type2  Type3
1        .50       .25     .25
4        .55       .25     .20
5        .65       .20     .15
etc

which describe the frequency of types 1, 2 and 3 (adding up to 100%) over
time. I would like to create a stacked bar chart showing these frequencies,
each bar of height = 1, subsections of bars proportional to the frequency,
and each bar located at the correct X (time) position. One difficulty is
that the desired spacing of bar locations on the x-axis is irregular. Is
this possible in R?

Many thanks,
Marcel

--
View this message in context: http://r.789695.n4.nabble.com/Stacked-bar-plot-of-frequency-vs-time-tp3659715p3659715.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list