[英]Tidy up ggplot with Jitter and fixing axis labels?
大家好,我有這個非常凌亂的情節。 我怎么能夠
這是我的代碼:
data <- ndpdata[which(ndpdata$FC.Fill.Size==20),] #20 fill size
library(tidyr)
my_df_long <- gather(data, group, y, -FC.Batch.Nbr)
data = my_df_long[2075:2550,]
ggplot(data, aes(FC.Batch.Nbr, y, color=FC.Batch.Nbr), na.rm=TRUE) + geom_point()
theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5))
breaks
: scale_y_continuous(breaks = c(251,270,290,310,325))
geom_point()
嘗試position = "jitter"
: geom_point(position = "jitter")
data <- data[!is.na(data)]
theme(legend.position = "none")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.