View source: R/plot.intsvy.reg.R
plot.intsvy.reg | R Documentation |
Functions pisa.reg, pisa.reg.pv, piaac.reg and piaac.reg.pv produce object of the class intsvy.reg. The function plot.intsvy.reg presents this list of regression models graphically.
## S3 method for class 'intsvy.reg'
plot(x, ..., vars, se = TRUE, sort = FALSE)
x |
An object of the class intsvy.reg returned by pisa.reg, pisa.reg.pv, piaac.reg and piaac.reg.pv functions. |
... |
Other arguments |
vars |
Variable labels of coefficients to be plotted. If none selected all coefficients are plotted including the R-squared |
se |
If TRUE add whiskers for standard errors. |
sort |
If TRUE groups are sorted in alphabetical order. |
Returns object of ggplot class with barplot. As with other ggplot objects the plus sign "+" can be used outside this function to modify graph parameters of the returning ggplot object. Works for one way, two-way and three-way contingency tables.
plot.intsvy.table, plot.intsvy.mean
## Not run:
# Independent variables
x.vars <- c("ESCS", "COGACT", "TCHBEHTD", "TCHBEHSO")
# Model estimation
my.mod <- pisa.reg.pv(pvlabel="MATH", x=x.vars, by="IDCNTRYL", data=pisa12)
# Plot
plot(gen.mod, vars = c("COGACT", "TCHBEHTD", "TCHBEHSO"), sort=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.