0
考慮以下功能:是否有可能在R鍵覆蓋由expand_limits()設置的值
plotSmth <- function(...) ggplot2::ggplot(...) +
expand_limits(x =c(0), y =0)
是否有可能會覆蓋的plotSmth
的expand_limits()
我試過的東西設置的值像:
plotSmth(thisIsData, aes(x=xhere, y=yhere, colour=as.factor(foo), lty=as.factor(bar) ) ) +
expand_limits(x=c(10), y=c(0, 25))
,但它仍然沒有覆蓋0
在的x
軸組的expand_limits()
。
有沒有辦法做到這一點?
可以請你提供[再現的示例](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example/5963610)與樣本的輸入數據並清楚描述期望的輸出是什麼? – MrFlick