View source: R/debit-plot-line.R
| debit_plot_line | R Documentation |
debit_plot_line() draws the DEBIT test for a single value set, as
grimmer_plot_line() does for GRIMMER. Of all SDs that could have been
reported with digits_sd decimal places, each square is one that n
binary values with mean x could have; the others are left out. The
reported SD is marked above the row and labeled as consistent or
inconsistent.
For many value sets, debit_plot() shows the results of
debit_map(). debit_values() lists the unrounded means and SDs
behind a reported pair.
debit_plot_line(
x,
sd,
n,
digits_x,
digits_sd,
data_type,
sd_meaning = c("sd_sample", "sd_pop", "sd_sample_or_pop", "se"),
formula = c("exact", "mean_n"),
rounding = "up_or_down",
threshold = 5,
symmetric = FALSE,
zoom = c("close", "medium", "wide"),
color_con = "#0047ff",
color_incon = "#ff2a00",
color_attainable = "grey75"
)
x, sd, n, digits_x, digits_sd, sd_meaning, formula, rounding, threshold, symmetric |
The same as in |
data_type |
String. |
zoom |
String. How much of the row to show: |
color_con, color_incon |
Strings. Color of the marker, the strip behind
the squares, and the square at the reported value if it is consistent.
|
color_attainable |
String. Color of the squares for attainable values
that were not reported, like the consistent cells of
|
zoom works as in grim_plot_line(), but with
zoom = "wide", the row runs from 0 to 1, the range of debit()'s inputs.
Under formula = "mean_n", the squares are the SDs of every mean that
would be reported as x, whether or not n binary values can have it.
A ggplot object.
# A mean of 0.35 with an SD of 0.49 is consistent with 20 binary values,
# but 0.41 is not:
debit_plot_line(
x = 0.35,
sd = 0.49,
n = 20,
digits_x = 2,
digits_sd = 2,
data_type = "integer"
)
debit_plot_line(
x = 0.35,
sd = 0.41,
n = 20,
digits_x = 2,
digits_sd = 2,
data_type = "integer"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.