Skip to content

decide what to do with legends for additional aesthetics #10

@sebkopf

Description

@sebkopf

Adding additional aesthetics to the plot can be very desirable for differentiating data in each panel. But what should happen to the legends? please chime in @KopfLab/ggstackplot-team

library(ggstackplot)
#> Loading required package: ggplot2
ggstackplot(
  mtcars,
  x = mpg,
  y = c(wt, qsec, drat),
  color = c("#E41A1C", "#377EB8", "#4DAF4A"),
  template = ggplot() +
    aes(linetype = factor(cyl), shape = factor(cyl)) +
    geom_line() +
    geom_point(size = 3) +
    theme_bw() +
    theme(panel.grid = element_blank())
)

test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions