我在dataframe t中有一个变量t,我想用log10 scale limit x_axis
#t$q
1.000000 2.500000 2.733333 3.032258 1.545455 1.967213 1.176471 1.000000 2.533333 3.136364 1.967213
ggplot(t,aes(x=q))+geom_freqpoly(binwidth=0.1)+scale_x_log10(limits=c(0,1))+scale_y_log10()我发现了一个错误:
Error in if (diff(range) == 0) { : missing value where TRUE/FALSE needed
Error in exists(name, envir = env, mode = mode) :
argument "env" is missing, with no default怎么了?
发布于 2015-06-23 19:21:56
0的对数是负无穷大,所以你会有一个很长的x轴!在limits=c(0.1, 1)调用中尝试ggplot。
https://stackoverflow.com/questions/31003788
复制相似问题