https://github.com/bearloga/quartile-frame-scatterplot
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). Inspired by The Visual Display of Quantitative Information # by Edward R. Tufte
https://github.com/bearloga/quartile-frame-scatterplot
Last synced: 3 months ago
JSON representation
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). Inspired by The Visual Display of Quantitative Information # by Edward R. Tufte
- Host: GitHub
- URL: https://github.com/bearloga/quartile-frame-scatterplot
- Owner: bearloga
- Created: 2012-06-21T21:25:13.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2016-01-23T00:43:24.000Z (over 10 years ago)
- Last Synced: 2025-03-24T13:44:12.369Z (about 1 year ago)
- Language: R
- Size: 43.9 KB
- Stars: 18
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Quartile-Frame Scatterplot with [ggplot2][1] (0.9.2+)
| Code By | Mikhail Y. Popov |
| :--- | :--- |
| email | [mikhail@mpopov.com](mailto:mikhail@mpopov.com)|
| web | [http://www.mpopov.com](http://www.mpopov.com) |
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).
## Install
```R
install.packages('devtools')
devtools::source_url('https://raw.githubusercontent.com/bearloga/Quartile-frame-Scatterplot/master/qfplot.R')
```
## Usage Example
Only x & y are required, everything else is optional.
```R
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:
```R
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")
```
## Sample Plot
![Sample output for Quartile-Frame Scatterplot][2]
[1]: https://github.com/hadley/ggplot2
[2]: https://github.com/briandk/Quartile-frame-Scatterplot/raw/master/qsplot-preview.png "Sample output for Quartile-Frame Scatterplot"