Error in get("make_aesthetics", env = x, inherits = TRUE)(x, ...) :
could not find function "empty"
Any idea about what is going wrong?
Cheers
Lorenzo
##########################################################################################
library(ggplot2)
fn
<-paste("http://dl.dropbox.com/u/5685598/many_tags_contact_duration_distr2_1_.dat")
contact<-read.table(fn,header=FALSE)
contact<-as.matrix(contact)
## my_dframe <- seq(length(contact))
## my_dframe[] <- contact
my_dframe <- data.frame(contact)
names(my_dframe) <- "contact_data"
#print("OK here1")
gpl <- ggplot(my_dframe,aes(x=contact_data) )+
geom_histogram(binwidth=0.3, colour="darkgreen", fill="white")+
scale_x_continuous(trans = "log10", limits=c(10,1e4))+
xlab("Contact Duration (sec)")+
ylab("Number of one-to-many Contacts")+
opts(axis.title.x = theme_text(size = 20))+
opts(axis.title.y = theme_text(size = 20, angle=90))+
opts(axis.text.x = theme_text(size=15, colour="gray",vjust=1))+
opts(axis.text.y = theme_text(size=15, colour="gray", hjust=1))
fn <- paste("histogram_contact_duration_many_tags_ggplot2_.pdf")
pdf(fn)
print(gpl)
dev.off()
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
Lorenzo