Skip to content

Add color function  #50

@DanyangDai

Description

@DanyangDai

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!

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