function with two different dataframe changing suffix

I have the following code

arrange <-
  grid.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.