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

a warning for SCP calling ggplot2 version > 3.4.X #254

Open
Shiywa opened this issue Aug 15, 2024 · 0 comments
Open

a warning for SCP calling ggplot2 version > 3.4.X #254

Shiywa opened this issue Aug 15, 2024 · 0 comments

Comments

@Shiywa
Copy link

Shiywa commented Aug 15, 2024

In some plot function including DynamicPlot, there will be an error when your ggplot2 version > 3.4.X.

Error in scale$guide == "none" :

the detailed function information is

raw_point <- list(geom_point(data = df_point, 
                                       mapping = aes(x = .data[["x_assign"]], 
                                                     y = .data[["exp"]], color = .data[[group.by]]), 
                                       size = pt.size, alpha = 0.8), scale_color_manual(values = palette_scp(df[[group.by]], 
                                                                                                             palette = point_palette, palcolor = point_palcolor)), 
                            scale_fill_manual(values = palette_scp(df[[group.by]], 
                                                                   palette = point_palette, palcolor = point_palcolor), 
                                              guide = guide_legend(override.aes = list(alpha = 1, 
                                                                                       size = 3), order = 1)), new_scale_color(), 
                            new_scale_fill())


p <- ggplot() + 
      scale_x_continuous(trans = x_trans, expand = expansion(c(0, 0))) + 
      scale_y_continuous(expand = expansion(c(0.1,  0.05))) + 
      raw_point

the error is due to the list is not support in ggplot()+list() in ggplot2 v3.5.X.

reinstall ggplot2 3.4.X could resolve the problem.

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