标签: r ggplot2 plot
ggplot2 / R的新手,所以id非常感谢有人为在不同站点Species,North,{ {1}},South,East,West,North.east,Northwest(X)。此处列出的值是相对于场所/物种的指标值。 另外-如何确定值范围=气泡大小?例如。值= 0.8-0.9 =最大尺寸。
Species
North
South
East
West
North.east
Northwest
样本数据
South.west
谢谢!!!
答案 0 :(得分:1)
你的意思是这样吗?
/run/flannel/subnet.env
要设置范围,请查看df %>% gather(Direction, Value, -Species) %>% mutate( Species = as.factor(Species), Orientation = as.factor(Direction)) %>% ggplot(aes(Direction, Species)) + geom_point(aes(size = Value)) ,scale_size和scale_radius。
df %>% gather(Direction, Value, -Species) %>% mutate( Species = as.factor(Species), Orientation = as.factor(Direction)) %>% ggplot(aes(Direction, Species)) + geom_point(aes(size = Value))
scale_size
scale_radius