Skip to content

Instantly share code, notes, and snippets.

@gtgrthrst
Last active May 9, 2021 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtgrthrst/637ff9d78cde0b32c23002ad924a573a to your computer and use it in GitHub Desktop.
Save gtgrthrst/637ff9d78cde0b32c23002ad924a573a to your computer and use it in GitHub Desktop.
library(ggplot2)
data1 <- rnorm(10000)
colnames(data1) <- "rnorm10000"
ggplot(data1, mapping = aes(rnorm10000))+
geom_histogram(bins = 15, colour = "white") +
theme(axis.title=element_blank(),
axis.text=element_blank(),
axis.ticks=element_blank()
) + #刪除XY軸
guides(fill = FALSE, color = FALSE, linetype = FALSE, shape = FALSE) #刪除圖例
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment