Description Usage Arguments Examples
meanplot()
takes a vector of data, a list or a data frame x
and finds the means for the different parts in the dataset. meanplot()
is able to divide a vector of data into a self-chosen number of parts. The function meanplot()
returns a plot of the means and the median of those. One more function is to find kind of a continous mean 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 meanplot() to divide x into 20 parts and to find the different means:
meanplot(x, divided = FALSE, nr = 20)
# Also return the estimated means:
meanplot(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 meanplot() to find the means for the different parts:
meanplot(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.