plot_bins {motoRneuron} | R Documentation |
Plot binned recurrence times as a histogram
Description
Takes data frame containing bins labels and frequency data to produce histogram.
Usage
plot_bins(binned_data)
Arguments
binned_data |
data frame containing frequency data produced by bin(). |
Examples
x <- c(0.035, 0.115, 0.183, 0.250, 0.306, 0.377, 0.455, 0.512, 0.577,
0.656, 0.739, 0.821, 0.866, 0.950, 1.014, 1.085, 1.153, 1.213, 1.279,
1.355, 1.431, 1.482, 1.551, 1.631, 1.692, 1.749, 1.832, 1.897, 1.964,
2.106, 2.149, 2.229, 2.302, 2.384, 2.420, 2.505, 2.592, 2.644, 2.722,
2.801, 2.870, 2.926, 3.011, 3.098, 2.030, 3.183, 3.252, 3.319, 3.395,
3.469, 3.560, 3.589, 3.666, 3.744, 3.828, 3.876, 3.943, 4.020, 4.104)
x <- sort(x)
y <- sort(jitter(x))
y <- round(y, digits = 3)
z <- recurrence_intervals(x, y, order = 1)
a <- unlist(z[10])
b <- bin(a, binwidth = 0.001)
plot_bins(b)
[Package motoRneuron version 1.0.0 Index]