function with two different dataframe changing suffix

I have the following code

arrange <-
    wild_dog + 
    red_dog + 
    blue_dog + 
    ncol = 1

wild_dog, red_dog, and blue_dog are all ggplots. I want to make the same graph but changing the suffix of these ggplots from dog to _cat. any help is appreciated.

essentially I want two gg.arrange graphs one for _dog and one for _cat. they are separate type of graphs.

Consider {patchwork} or {cowplot}.

1 Like

how can they solve issue? thanks

Every plot can have an independent data frame and aesthetic.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.