plot.strata_doctopic {keyATM} | R Documentation |
Plot document-topic distribution by strata (for covariate models)
Description
Plot document-topic distribution by strata (for covariate models)
Usage
## S3 method for class 'strata_doctopic'
plot(
x,
show_topic = NULL,
var_name = NULL,
by = c("topic", "covariate"),
ci = 0.9,
method = c("hdi", "eti"),
point = c("mean", "median"),
width = 0.1,
show_point = TRUE,
...
)
Arguments
x |
a strata_doctopic object (see |
show_topic |
a vector or an integer. Indicate topics to visualize. |
var_name |
the name of the variable in the plot. |
by |
|
ci |
value of the credible interval (between 0 and 1) to be estimated. Default is |
method |
method for computing the credible interval. The Highest Density Interval ( |
point |
method for computing the point estimate. |
width |
numeric. Width of the error bars. |
show_point |
logical. Show point estimates. The default is |
... |
additional arguments not used. |
Value
keyATM_fig object.
See Also
save_fig()
, by_strata_DocTopic()
[Package keyATM version 0.5.2 Index]