How to add a table with data changes relative to a variable in ggplot R

I have an example of a plot that i need to get it using the R language. I use the ggplot2 library. Are there any ideas how to get a table that shows the change in values ​​under the graphs

I was trying to use annotate statement with geom = “table”, but it did not help

  • 1

    It’s really unclear what you want. Can you link to an example of the output you want, or describe it more clearly (e.g. include R code for the plot and the table, and say where you want the table to appear in the final plot)?

    – 

  • It’s much easier to help you if you share a minimal reproducible example – share a little bit of sample data (if you have data named my_data, then dput(my_data[1:10, ]) will make copy/pasteable code to create the first 10 rows of it), share anything you’ve tried, and be clear about the expected output.

    – 

Leave a Comment