1
ggplot2グラフのy軸番号を次のように並べ替えようとしています。デフォルトでは、最初の数字のみを考慮して並べ替えられ、昇順で並べ替えます。私はどんな提案にも大いに触れています。y軸を並べるggplot2()
plot <- ggplot(top.OTUs.abun.melt, aes(C, test, size = SA)) +
geom_point(aes(size = SA/110), shape = 21) +
scale_size_identity(trans = "sqrt", breaks = c(100, 1000, 5000, 20000)) +
theme(panel.grid.major = element_line(linetype = 2, color = "black", size = 0.025),
axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.2)) +
scale_y_discrete(expand = c(0, 2.5))
plot2 <- plot + guides(colour = guide_legend(override.aes = list(size = 5)))
plot2
おかげMatt74、しかし私はそれが数字の距離に基づいてグラフ全体のスケールを数値に変更している場合... – FranciscoC