Skip to content

geom_mark_rect not facetting the same as geom_mark_circle  #307

Closed

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) 

Activity

  1. added a commit that references this issue on Feb 19, 2024
    bdb7e39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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