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

Start plot_annotation() labels from input value #63

Closed
snystrom opened this issue Jun 27, 2018 · 4 comments
Closed

Start plot_annotation() labels from input value #63

snystrom opened this issue Jun 27, 2018 · 4 comments

Comments

@snystrom
Copy link

Some of my use-cases require making a plot that includes panels that are not ggplot objects. It would be great if plot_annotation() could be told which letter/number/numeral to start from in its labeling.

Alternately, is it currently possible (or easier to implement) to pass a vector of custom annotations?

@thomasp85
Copy link
Owner

It is not currently possible but I might consider adding it

@SDAMcIntyre
Copy link

Maybe the same, but maybe not quite - it would be great if there was an option in plot_annotation() to include the blanks in the layout (created by '#' in design or plot_spacer()), so they get a label as well.

e.g.:

layout <- '
AB
CD
'
wrap_plots(A = plot1, B = plot2, C = plot_spacer(), D = plot3, design = layout) + 
  plot_annotation(tag_levels = 'A', include_blanks = TRUE)

So then they would be labelled with A, B, C and D, rather than A, B, nothing, and C.

@pforny
Copy link

pforny commented Sep 25, 2021

Is this option available now? I would very much like to label the blanks created by plot_spacer(). Thanks! :)

@ahdee
Copy link

ahdee commented Jun 6, 2023

@snystrom with the new version ef5ca4f

you could just add your customize ( for example say u want to start with E) like this:

d=ggplot()

d + d + plot_annotation(tag_levels = list(c('E', 'F'), '1'))

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

5 participants