Skip to content

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

Open
@Shiywa

Description

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.

Activity

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