R中的相对频率直方图

时间:2020-07-19 04:13:34

标签: r

我需要使用相对频率的直方图。这是我正在使用的代码。我希望有7条而不是10条。我该如何更改?

histo<-hist(DatosTA1$Datos)
barplot(histo$counts/50,col="green",space=0)->bp   # n=length(variable)
axis(1,at=b,labels=b)
title(ylab="Frecuencia relativa",xlab="Distribución de frecuencias 
                del tiempo relativo") 

enter image description here

0 个答案:

没有答案
相关问题