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

ggplot 3.3.4 required 'none' instead of FALSE in guides #49

Open
Yannco5 opened this issue Feb 18, 2024 · 3 comments
Open

ggplot 3.3.4 required 'none' instead of FALSE in guides #49

Yannco5 opened this issue Feb 18, 2024 · 3 comments

Comments

@Yannco5
Copy link

Yannco5 commented Feb 18, 2024

Hey.
I am using ggnet and when plotting a graph I get the following warning:

4: The `<scale>` argument of `guides()` cannot be `FALSE`. Use "none" instead as of ggplot2 3.3.4.
i The deprecated feature was likely used in the ggnet package.
  Please report the issue at <https://github.com/briatte/ggnet/issues>.

So I obey and report (great verobse msg by the way!)

Thanks and wonderful work
image

@briatte
Copy link
Owner

briatte commented Jun 17, 2024

Hi @Yannco5

Thanks a lot. Would you mind providing a reproducible example? I believe this might occur only when plotting text over nodes, but want to be sure.

@iamYannC
Copy link

iamYannC commented Jun 17, 2024

Hi @Yannco5

Thanks a lot. Would you mind providing a reproducible example? I believe this might occur only when plotting text over nodes, but want to be sure.

hey.. long time since this issue :)
Can't seem to reproduce this error now (I modified the initial code quite intensively) but my current plot includes guides and by setting 'none' myself it doesnt throw any errors

Its not reproducible since i generate the whole net myself with some modifications, but this guide function work fine, no errors related to it

 guides(size = "none",
         shape = guide_legend(title.position = "top",
                              title.hjust = 0.5,
                              direction = "vertical",
                              override.aes = list(size = lgnd_key_size)
         )
  )

Sorry for not providing any meaningful code

@briatte
Copy link
Owner

briatte commented Jun 19, 2024

No worries @iamYannC, will do my best to reproduce at some point.

I'd like to recommend the ggnetwork or even better ggraph packages for network visualization. Their features extend well beyond what you will find in ggnet/ggnet2, which was kind of a first draft for ggnetwork. ggraph, in particular, is extremely versatile.

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