8000 label.fill = "inherit" creates error · Issue #331 · thomasp85/ggforce · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

label.fill = "inherit" creates error #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hgoldspiel opened this issue Feb 7, 2025 · 2 comments
Open

label.fill = "inherit" creates error #331

hgoldspiel opened this issue Feb 7, 2025 · 2 comments

Comments

@hgoldspiel
Copy link

I seem to be having an issue assigning label fills with the same color as the ellipses using the label.fill argument in geom_mark_ellipse().

When I add the argument label.fill = "inherit" I get the error: "invalid color name 'inherit'

I am using ggforce version 0.4.2 on R version 4.2.1.

@lbenz730
Copy link

Yes the examples no longer work

ggplot(iris, aes(Petal.Length, Petal.Width)) +
  geom_mark_circle(aes(fill = Species, label = Species),
                   label.fill = "inherit") +
  geom_point()

Gives error

Error in grid.Call.graphics(C_rect, x$x, x$y, x$width, x$height, resolveHJust(x$just, : invalid color name 'inherit'

@trekonom
Copy link

This feature is only available in the. dev version, i.e. version 0.5.0 (see the version number on the pkgdown site):

library(ggplot2)
library(ggforce)

packageVersion("ggforce")
#> [1] '0.5.0'

ggplot(iris, aes(Petal.Length, Petal.Width)) +
  geom_mark_circle(
    aes(fill = Species, label = Species),
    label.fill = "inherit"
  ) +
  geom_point()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0