Remove Border of ggplot2 geom_label Text Annotation in R | Draw Example Scatterplot | label.size=NA
Автор: Statistics Globe
Загружено: 24 дек. 2021 г.
Просмотров: 786 просмотров
How to get rid of ggplot2 text annotation borders in the R programming language. More details: https://statisticsglobe.com/remove-bo...
R code of this video:
data <- data.frame(x = 7:2, # Create example data
y = 1:6)
install.packages("ggplot2") # Install & load ggplot2
library("ggplot2")
ggp <- ggplot(data, aes(x, y)) + # ggplot2 plot without text label
geom_point()
ggp # Draw ggplot2 plot
ggp + # Adding text label to plot
geom_label(aes(x = 4.5,
y = 4,
label = "This is my text with borders!"))
ggp + # Remove text label border
geom_label(aes(x = 4.5,
y = 4,
label = "This is my text without borders!"),
label.size = NA)
Follow me on Social Media:
Facebook – Statistics Globe Page: / statisticsglobecom
Facebook – Group for Discussions & Questions: / statisticsglobe
LinkedIn – Statistics Globe Page: / statisticsglobe
LinkedIn – Group for Discussions & Questions: / 12555223
Twitter: / joachimschork
Music by bensound.com

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: