Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 从点阵直方图中提取值_R_Lattice - Fatal编程技术网

R 从点阵直方图中提取值

R 从点阵直方图中提取值,r,lattice,R,Lattice,我使用晶格中的histogram()创建了一个等面积直方图,但是,我似乎找不到一种方法来提取20个大小相等的容器中的值。有什么建议吗?我也研究过使用ggplot2,但我不能创建面积相等的箱子,同时能够使用ggplot\u build提取数据。下面是一个例子: library(lattice) cell <- 1:20 psi <- rnorm(1:20) histogram(df$psi, freq = TRUE, equal.width

我使用晶格中的
histogram()
创建了一个等面积直方图,但是,我似乎找不到一种方法来提取20个大小相等的容器中的值。有什么建议吗?我也研究过使用ggplot2,但我不能创建面积相等的箱子,同时能够使用
ggplot\u build
提取数据。下面是一个例子:

library(lattice)

cell <- 1:20

psi <- rnorm(1:20)

histogram(df$psi,
          freq = TRUE,
          equal.width = FALSE,
          breaks = NULL,
          nint = 20)
库(晶格)
在你的问题中加入a将增加你得到答案的机会。在你的问题中加入a将增加你得到答案的机会。