0
我正在嘗試在gglot2中製作一個看起來像this的圖。ggplot2在放大時會切掉我的身影部分
但是,我似乎現在有一個權衡其所有的方塊小象......或者在廣場放大和有部分之間切割 both displayed here as I may not add more pictures, yet
我的代碼遵循
if (!require('ggplot2')) install.packages('ggplot2'); library('ggplot2')
Odds <- c(1.2,1,0.97,1,1.38,0.95,0.85,0.95)
x <- c(5,3.5,0,-3.5,-5,-3.5,0,3.5)
y <- c(0,3.5,5,3.5,0,-3.5,-5,-3.5)
summed <- data.frame(Odds,x,y)
d <- qplot(x, y, data=summed, colour =Odds)
d + theme_classic(base_size = 14) + geom_point(size = 30, shape=15) +
scale_colour_gradient(low="grey", high = "black") +
ylab("") +
xlab("") +
scale_y_continuous(breaks=NULL) + scale_x_continuous(breaks=NULL)
我希望你們中的一些人能幫助我。
也許加上'expand_limits(x = c(-6,6),y = c(-6,6))' –