Learn R Programming

SciencesPo (version 1.3.5)

legendPlotMinimalist: Add legends to a plot

Description

To add special styles of legends.

Usage

legendPlotMinimalist(...)

Arguments

...
Legend parameters.

Examples

Run this code
par(mar = c(5, 4, 1.4, 0.2))
plot(rnorm(50), rnorm(50), col=c("steelblue", "indianred"), pch=20)
legendPlotMinimalist("topright", legend=c("Foo", "Bar"), pch=20,
col=c("steelblue", "indianred"),
horiz=TRUE, bty='n', cex=0.8)

Run the code above in your browser using DataLab