ggplot2 (0.9.2+)Quartile-Frame Scatterplot with
|Code By||Mikhail Y. Popov|
Inspired by The Visual Display of Quantitative Information by Edward R. Tufte
The goal is to make the axes tell a better story about the data. This is done by turning the axes into quartile plots (cleaner boxplots).
Only x & y are required, everything else is optional.
qfplot(x = mtcars$wt, y = mtcars$mpg, main = "Vehicle Weight-Gas Mileage Relationship", xlab = "Vehicle Weight", ylab = "Miles per Gallon", font.family = "Gill Sans")
You may need to specifiy an explicit font mapping:
windowsFonts(TNR = windowsFont("Times New Roman")) qfplot(x = Orange$age,y=Orange$circumference, main = "Growth of Orange Trees", xlab = "Age (days since 12/31/1968", ylab = "Circumference at breast height (mm)", font.family = "TNR")