[英]R scatter plot not plotting all of x axis
我在弄清楚如何使我的x軸更大以及我所有的點都適合時遇到了麻煩。 對於x軸,我的點在5.2到57.9之間。 我想使我的x軸從0到可能的60。
這是我的代碼和以下內容的圖片:
library(RColorBrewer)
my.colors <- brewer.pal(7, "RdBu")
plot(x=log(ScatPlot$ownership..pct.),
y=ScatPlot$firearm.law.stringency,
+ cex=(ScatPlot$death.rate),
+ col=my.colors[ScatPlot$state],
+ main="Death Rate given % Ownership and Law
Stringency Per State",
+ xlab="% Ownership", ylab="Death Rate")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.