Problems with ggplot2 0.8.3 - "Error: Casting formula contains variables not found in molten data: Bin"

44 views
Skip to first unread message

Jason Rupert

unread,
Mar 30, 2009, 10:22:38 AM3/30/09
to ggp...@googlegroups.com

Ran the below with the Windows version of 0.8.3 that I developed.

Your package ggplot2_0.8.3.tar.gz has been built (if working) and checked for Windows.
Please check the log files and (if working) the binary package at:
http://win-builder.r-project.org/hzqt9V7U4xEM
The files will be removed after roughly 72 hours.
Installation time in seconds: 35
Check time in seconds: 63
Check result: ERROR
R version 2.9.0 alpha (2009-03-25 r48218)

However, when I run my simple test code, which works with
ggplot2 0.8.1, I receive an error.

Error: Casting formula contains variables not found in molten data: Bin


I realize there is a risk with running developmental code, so I apprecaite any insights and guidance.


Me_df<-data.frame(Data = c(1:15), Person = "Me")
You_df<-data.frame(Data = c(10:20), Person = "You")
Them_df<-data.frame(Data = c(15:25), Person = "Them")

Group_df_tmp<-rbind(Me_df,You_df)
Group_df<-rbind(Group_df_tmp,Them_df)

Group_df$Person <- factor(Group_df$Person, levels = c("Them", "You", "Me"))

counts <- ddply(Group_df, .(cut(Data, breaks=fullseq(range(Data), 5)), Person), nrow)
names(counts) <- c("Bin", "Person", "Frequency")
qplot(Person, Frequency, data = counts, fill = Person, geom="bar", stat="identity", width = 0.9, xlab="Person") + facet_grid(. ~ Bin) + scale_fill_manual(values = c("royalblue2", "tomato3", "palegreen2")) + opts(legend.position=c(0.8,0.70)) + xlim("You", "Me", "Them")


Error: Casting formula contains variables not found in molten data: Bin


Reply all
Reply to author
Forward
0 new messages