Displaying 1 result from an estimated 1 matches for "byyear2".
Did you mean:
byyear
2007 Jul 12
1
ggplot2 / reshape / Question on manipulating data
...a
manner similar to 'plot' with regards to the x-axis labels by using
'melt' and 'cast'. The 'qplot' now behaves correctly:
> mratings <- melt(ratings, id = c("Title", "Year"), measure = c("VoteCount", "VoteMean"))
> byYear2 <- cast(mratings, Year ~ variable, mean, subset = variable == "VoteMean")
> qplot(Year, VoteMean, data = byYear2)
How do 'byYear' and 'byYear2' differ? I am trying to use 'typeof' but
both seem to be lists. However, they are clearly different in some
way b...