Skip to content
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

Warning message: Ignoring unknown aesthetics: xmin, xmax, annotations, y_position #116

Open
bersbersbers opened this issue Mar 7, 2022 · 3 comments

Comments

@bersbersbers
Copy link

This example code from https://github.com/const-ae/ggsignif raises a warning:

Warning message: Ignoring unknown aesthetics: xmin, xmax, annotations, y_position

library(ggplot2)
library(ggsignif)
annotation_df <- data.frame(
  color = c("E", "H"),
  start = c("Good", "Fair"),
  end = c("Very Good", "Good"),
  y = c(3.6, 4.7),
  label = c("Comp. 1", "Comp. 2")
)

annotation_df
#>   color start       end   y   label
#> 1     E  Good Very Good 3.6 Comp. 1
#> 2     H  Fair      Good 4.7 Comp. 2

ggplot(diamonds, aes(x = cut, y = carat)) +
  geom_boxplot() +
  geom_signif(
    data = annotation_df,
    aes(xmin = start, xmax = end, annotations = label, y_position = y),
    textsize = 3, vjust = -0.2,
    manual = TRUE
  ) +
  facet_wrap(~color) +
  ylim(NA, 5.3)
@NJU-Bio-Info
Copy link

I also met same problem, can you give us some help? @const-ae

@IndrajeetPatil
Copy link
Collaborator

As mentioned in README:

You can ignore the warning about the missing aesthetics.

@IndrajeetPatil
Copy link
Collaborator

In the long run, we will see if we can get rid of this warning.

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