R Set Area Margins of ggplot2 Plot (Example) | Increase White Space Using theme, plot.margin & unit

preview_player
Показать описание
How to set plot area margins in the ggplot2 package in the R programming language. More details:

y = 1:10)

library("ggplot2") # Load ggplot2 package

ggp <- ggplot(data, aes(x, y)) + # ggplot2 with default margins
geom_point()
ggp # Draw plot

ggp + # Change margins of ggplot2 plot

Follow me on Social Media:
Рекомендации по теме
Комментарии
Автор

That graph looks crazy small in the video lol. It looks good when I ran it though, thanks! :D

monkeyofwar
join shbcf.ru