Description Usage Arguments Examples
sdplot()
takes a vector of data, a list or a data frame x
and finds the standard deviations for the different parts in the dataset. sdplot()
is able to divide a vector of data into a self-chosen number of parts. The function sdplot()
returns a plot of the standard deviations and the median of those. One more function is to find kind of a continous standard deviation plot, where the first nr
numbers of elements are evaluated and then continues through the whole dataset with steps 1.
1 |
x |
The data to be analyzed. |
nr |
If |
divide |
If set to |
divided |
Needs to be defined to tell the function whether the dataset |
return |
If set to |
1 2 3 4 5 6 7 8 9 10 11 | # Simulate a dataset from a Poisson distribution:
x = rpois(1000, 3)
# Use sdplot() to divide x into 20 parts and to find the different standard deviations:
sdplot(x, divided = FALSE, nr = 20)
# Also return the estimated standard deviations:
sdplot(x, divided = FALSE, nr = 20, return = TRUE)
# Define a list (or data frame) of data:
x = list(c(1:4), c(4:10), c(1,6,1,8,0,0,98,6), c(10,11,11,11,11,6,3))
# Use sdplot() to find the standard deviations for the different parts:
sdplot(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.