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

Error when using plot_sf with a factor containing a space symbol #13

Open
cedricbatailler opened this issue Jun 8, 2021 · 0 comments
Open

Comments

@cedricbatailler
Copy link

Hi there,

I just noticed an error when trying to plot a shift function with plot_sf when one of the factor contained a space symbol.

Let me know if I can be of any help!

library(rogme)                    # remotes::install_github("GRousselet/rogme")
library(ggplot2)

dataset <-
    data.frame(x = factor(c("Condition A", "Condition B")),
               y = rnorm(100))


sf <- shifthd(data = dataset, 
              formula = y ~ x, nboot = 200)

plot_sf(sf)
#> Error in parse(text = elt): <text>:1:11: unexpected symbol
#> 1: Condition A
#>               ^

Created on 2021-06-08 by the reprex package (v2.0.0)

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

1 participant