Learn R Programming

ggthemes (version 3.5.0)

scale_linetype_stata: Stata linetype palette (discrete)

Description

See stata_linetype_pal for details.

Usage

scale_linetype_stata(...)

Arguments

...

common discrete scale parameters: name, breaks, labels, na.value, limits and guide. See discrete_scale for more details

See Also

Other linetype stata: stata_linetype_pal

Examples

Run this code
# NOT RUN {
require("dplyr")
require("tidyr")
require("ggplot2")

rescale01 <- function(x) {
  (x - min(x)) / diff(range(x))
}

gather(economics, variable, value, -date) %>%
  group_by(variable) %>%
  mutate(value = rescale01(value)) %>%
  ggplot(aes(x = date, y = value, linetype = variable)) +
  geom_line() +
  scale_linetype_stata()
# }

Run the code above in your browser using DataLab