Add Panel Border to ggplot2 Plot in R (Example) | Draw Line Around Graph | theme() & element_rect()

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

y = 1:6)

library("ggplot2")

ggp <- ggplot(data, aes(x, y)) + # Create ggplot2 plot without panel border
geom_point()
ggp # Draw ggplot2 plot without panel boarder

ggp + # Add panel border to ggplot2 plot
fill = NA,
size = 10))

Follow me on Social Media:
Рекомендации по теме
visit shbcf.ru