Skip to content

Instantly share code, notes, and snippets.

@gtgrthrst
Last active June 14, 2021 06:53
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/bf17b5e2ff23fb3fb2b3b63693953382 to your computer and use it in GitHub Desktop.
Save gtgrthrst/bf17b5e2ff23fb3fb2b3b63693953382 to your computer and use it in GitHub Desktop.
library(ggplot2)
plotdata <- data.frame(V1 = c(1:10),
V2 = c(1:10),
V3 = c(rnorm(10))*10)
ggplot(data = plotdata, aes(x = V1, y = V2, size = V3))+
geom_point( alpha = 0.2, fill = "blue",shape = 21)+
theme(axis.title=element_blank(),
axis.text=element_blank(),
axis.ticks=element_blank())+
guides(fill = FALSE, color = FALSE, linetype = FALSE, shape = FALSE, size = FALSE) #刪除圖例
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment