How can I plot a histogram of a long-tailed data using R?

后端 未结 3 1815
渐次进展
渐次进展 2020-12-13 16:18

I have data that is mostly centered in a small range (1-10) but there is a significant number of points (say, 10%) which are in (10-1000). I would like to plot a histogram f

3条回答
  •  死守一世寂寞
    2020-12-13 16:34

    A dynamic graph would also help in this plot. Use the manipulate package from Rstudio to do a dynamic ranged histogram:

    library(manipulate)
    data_dist <- table(data)
    manipulate(barplot(data_dist[x:y]), x = slider(1,length(data_dist)), y = slider(10, length(data_dist)))
    

    Then you will be able to use sliders to see the particular distribution in a dynamically selected range like this: enter image description here

提交回复
热议问题