Skip to contents

A quick and dirty way to show linetypes.

Usage

show_linetypes(linetypes, labels = TRUE)

Arguments

linetypes

A character vector of linetypes. See graphics::par().

labels

If TRUE (the default), label each line with its linetype (lty) value.

Value

Called for its side effect of creating a plot; returns linetypes invisibly.

Examples

library("scales")

show_linetypes(linetype_pal()(3))

show_linetypes(linetype_pal()(3), labels = TRUE)