Add Table to ggplot2 Plot in R (Example) | Draw & Annotate Data within Graph Area | ggpmisc Package

preview_player
Показать описание
R code of this video:

x = 1:9,
y = c(1, 3, 2, 1, 3, 1, 2, 1, 1))

library("ggplot2") # Load ggplot2 package

ggp <- ggplot(data, aes(x, y, color = group)) + # ggpot2 plot without table
geom_point(size = 3)
ggp # Draw plot

library("ggpmisc")

ggp + # Add table to ggplot2 plot
annotate(geom = "table",
x = 9,
y = 3,
label = list(my_table))

Follow me on Social Media:

Рекомендации по теме
Комментарии
Автор

Thank you for another interesting and very useful application.

pcsksa
Автор

Thank You Sir, for this informative Video

gayathriss
Автор

Thank you for the tutorial, adding more details to a plot. I am, however, a bit lost. Which function did you use from the package "ggpmisc"? I understood that the annotate function was called from ggplot2 package or I am wrong? Thanks.

njokinjukilucy
Автор

Hi, you are the best R professor, your videos have made easy my life several times, nonetheless I have a little question, how could I highlight some values in R graphics using geometric shapes like circles or ovals etc?. Thanks for your excellent videos.

Azrael
Автор

Is there a way to add a table with multicolumns (subcolumns) to a ggplot?

statsmama
Автор

hello! thank you for this great video!! Is there any way to add a table below the plot? Thank you!

vanessajx
join shbcf.ru