seqmissfplot | R Documentation |
Plot function that renders the most frequent patterns of missing data. This function is based on the seqfplot function.
seqmissfplot(data, var = NULL, with.complete = TRUE, ...)
data |
a data.frame where missing data are coded as |
var |
the list of columns containing the trajectories. Default is NULL, i.e. all the columns. |
with.complete |
a logical stating if complete trajectories should be included or not in the plot |
... |
parameters to be passed to the seqfplot function |
This plot function is based on the seqfplot function.
To see which arguments can be changed, see the seqfplot
help. In particular, the number of most frequent
patterns to be plotted can be changed with the argument idxs
. By
default, the 10 most frequent patterns are plotted.
Kevin Emery
# Plot the 10 most common patterns of missing data
seqmissfplot(gameadd, var=1:4)
# Plot the 10 most common patterns of missing data discarding
# complete trajectories
seqmissfplot(gameadd, var=1:4, with.missing = FALSE)
# Plot only the 5 most common patterns of missing data discarding
# complete trajectories
seqmissfplot(gameadd, var=1:4, with.missing = FALSE, idxs = 1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.