Possible Duplicate:
geom_boxplot with precomputed values
I am wondering how to convert a frequency table like following to boxplot by ggplot2 to show distribution of each Group(Group as x axis and Frequency as y axis). It stuck me for a while since boxplot examples I found by google, y axis values are all need to be given by each data point, not frequency.
Group1 Group2 … Group60
1-100 8 5 15
101-200 12 7 21
201-300 15 11 33
301-400 25 12 35
401-500 40 15 45
501-600 43 18 55
…
data=read.table(file="data.csv",sep=",",header=TRUE,row.names=1)
df=melt(data)
df$variable=factor(df$variable)
names(df)=c("Group","freq")
then ?