All, I am using gglpot to produce combination density and histogram plots, which are actually kinda cool, everything works well and the plots look nice. However after each plot run I receive the following message:
stat_bin: binwidth defaulted to range/30. Use 'bin width = x' to adjust this. Below is the code I used to create the graph. I think I am pretty much following the examples in Hadley's ggplot2 book and really just need to eliminate the message as the graphs look fine. Any suggestions are appreciated. Best Regards, Glenn Mdur.dist <- ggplot(OAS.Mdur, aes(x = value )) + geom_density(fill = "#56B4E9", colour = "#56B4E9", alpha = .6) + geom_histogram(aes(y =..density..), color = "lightgrey", fill = "#0072B2", bindwidth = .01) + theme_minimal() + #scale_x_continuous(breaks = seq(80,120, 5)) + labs(title = "Mod. Duration Distribution") + ylab("Density")+ xlab("Path Mod. Duration") + theme(panel.grid.major = element_line(size = .25, color = "grey")) + theme(axis.text = element_text(size = 15)) + theme(axis.title = element_text(size = 20)) + theme(legend.position = "none") ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.