Quantcast
Channel: Assign name of data frame to ggplot title in purrr loop - Stack Overflow
Browsing index pages (2 articles)

Assign name of data frame to ggplot title in purrr loop

I have two data sets from which I would like to generate histograms showing how the data overlap by name (A, B, C). I have written a custom function so I can use ggplot with map2. I would like the...

View Article


Answer by CzechInk for Assign name of data frame to ggplot title in purrr loop

Another similar option to what @GregorThomas mentioned in the comments, you could add a name variable to your data.frames and pull from that in your gplot() function. I've also shown how you might...

View Article

Browsing index pages (2 articles)


Latest Images