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

Add color function #50

Open
DanyangDai opened this issue Aug 19, 2024 · 0 comments
Open

Add color function #50

DanyangDai opened this issue Aug 19, 2024 · 0 comments

Comments

@DanyangDai
Copy link

DanyangDai commented Aug 19, 2024

Hello

I have tried to add the color options to allow for different colors for groups of geom_points and the errorbars. I had difficulty to make the alinement of the table rows and geom_points after adding the color legend at the bottom of the forest plot.

You can have a look at what I've tried from: master...DanyangDai:forester:master

I think the difficult part is to adjust for the patchwork with the additional color legend at the bottom of the plot. This current patchwork::inset_element(center, align_to = "full", left = (left_width/total_width), right = ((ggplot_width + left_width)/total_width), top = 0.97, bottom = 0)
works for my forestplot setting but it does need adjustment to makesure the alinement for the table rows and geom_point and errorbars based on the number of table rows.

Hope people know more about patchwork would assist on the alinement with color legend at the bottom.

Thanks!

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