Skip to content

geom_mark_rect not facetting the same as geom_mark_circle  #307

Closed
@maddyduran

Description

@maddyduran

I am trying to facet a plot and keep the geom_mark_rect consistent across facets, but it appears on only one panel. However, when I use geom_mark_circle or geom_mark_ellipse, I don't get the same behavior as demonstrated here.
image

image

this was the code I used to produce these plots as an example:

iris_1 = iris
iris_1$split = "a"
iris_2 = iris
iris_2$split = "b"

double_iris = rbind(iris_1, iris_2)

double_iris %>% 
  ggplot(aes(Petal.Length, Petal.Width)) +
  geom_mark_rect(aes(color = Species)) +
  geom_point() + facet_col(~split) 

double_iris %>% 
  ggplot(aes(Petal.Length, Petal.Width)) +
  geom_mark_circle(aes(color = Species)) +
  geom_point() + facet_col(~split) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions