所以我在ylab
函数中为barplot
和beside=T
指定了一些字符串,但是由于某种原因我没有显示它们。另外,我已指定barplot(height=c(mean(d2$tconv[d2$NFUP==1]), mean(d2$tconv[d2$FUP==1])),
col = c(2,3), names.arg=levels(d$progu1),
main="Tiempo de Conversión según si el usuario convertido ha acabado la 1era Unidad",
ylim=c(0,max(mean(d2$tconv[d2$FUP==1]), mean(d2$tconv[d2$NFUP==1]))+10),
xlab="Uso", ylab="Tiempo hasta Conversión", border=F, beside=T)
并且条形并排放置。这是代码:
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
color: #636363;
}
这是结果。缩放没有帮助:
答案 0 :(得分:1)
为了理解旁边= T的工作原理,请检查:
counts <- table(mtcars$vs, mtcars$gear)
barplot(counts, main="Car Distribution by Gears and VS",
xlab="Number of Gears", col=c("darkblue","red"),
legend = rownames(counts), beside=TRUE)
barplot(counts, main="Car Distribution by Gears and VS",
xlab="Number of Gears", col=c("darkblue","red"),
legend = rownames(counts), beside=FALSE)
barplot(counts[2,], main="Car Distribution by Gears and VS",
xlab="Number of Gears", col=c("darkblue","red"),
legend = rownames(counts), beside=TRUE)
答案 1 :(得分:0)
尝试设置更宽的边距。例如:
par(mar=c(4,4,4,4))
您可以通过以下方式查看当前保证金:
par()