首页 > 解决方案 > 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") 

在此处输入图像描述

标签: r

解决方案


推荐阅读