Learn R Programming

SciencesPo (version 1.4.1)

Scatterplot: Quartile-Frame Scatterplot

Description

Plots a scatterplot with a custom axis that acts as a quartile plot (quartile-frame). Inspired by The Visual Display of Quantitative Information by Edward R. Tufte.

Usage

Scatterplot(x, y, ...)

Arguments

x, y
aesthetics passed into each layer variables # @param data data frame to use (optional).
...
additional arguments.

Examples

Run this code
with(mtcars, Scatterplot(x = wt, y = mpg,
main = "Vehicle Weight-Gas Mileage Relationship",
xlab = "Vehicle Weight",
ylab = "Miles per Gallon",
font.family = "serif") )

Run the code above in your browser using DataLab