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

Suggestion for new vis for GPs #80

Open
mike-lawrence opened this issue Mar 26, 2017 · 6 comments
Open

Suggestion for new vis for GPs #80

mike-lawrence opened this issue Mar 26, 2017 · 6 comments

Comments

@mike-lawrence
Copy link

Attached is an archive demonstrating use of the visualization discussed at this ggplot2-users thread. Sorry I didn't formulate this as a pull request, but I don't have time at the moment to delve into how to best merge it with the existing bayesplot frameworks. Also attaching the plot resulting from running the demo.
gp_plot_demo.zip
gp_plot_demo

@Ax3man
Copy link

Ax3man commented Mar 27, 2017

You can simply use

+ theme(panel.ontop = TRUE, panel.background = element_blank())

to put the grid lines on top.

W.

@jgabry jgabry added the feature label Mar 27, 2017
@mike-lawrence
Copy link
Author

@Ax3man Ah, neat trick!

@mike-lawrence
Copy link
Author

Oh, spoke too soon; well, it is a neat trick, but the subsequent grid lines have alpha=1 and theme(panel.grid=element_line(alpha=.5)) yields an error.

@Ax3man
Copy link

Ax3man commented Mar 27, 2017

You can use scales::alpha('white', 0.5)), or rgb(1, 1, 1, 0.5) as colors. Although it seems you have to set both major and minor grid lines separately.

Probably related to tidyverse/ggplot2#1754

@jgabry
Copy link
Member

jgabry commented Mar 27, 2017

Cool, thanks to both of you!

@mike-lawrence I'll follow up once I have a chance to put a preliminary implementation up on a branch.

@jgabry jgabry added the new plot label Aug 7, 2017
@mike-lawrence
Copy link
Author

Seems you were beat to the punch by ggfan::geom_fan():
https://cran.r-project.org/web/packages/ggfan/vignettes/geom_fan.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants