View source: R/PlotStrategybyCatPerformance_m2.R
PlotStrategybyCatPerformance | R Documentation |
This is a function that reports the number of students and number of actions (min-max) aggregated by a specific variable.
PlotStrategybyCatPerformance(data, strategy.var, categ.var, namexlab, nameylab)
data |
A |
strategy.var |
strategy variable |
categ.var |
categorizing variable |
namexlab |
name of the variable in the x-axis |
nameylab |
name of the variable in the y-axis |
This function returns a data.frame
with the number of students
and number de actions (min-max) aggregated by a specific variable.
# Data preparation df <- cp025q01.treated df$categ <- cut(df$PV1CPRO, c(0, 423, 488, 553, 900)) df.dataplot <- df[, c("top", "categ")] df.dataplot[, 1] <- as.factor(df.dataplot[, 1]) df.dataplot[, 2] <- as.factor(df.dataplot[, 2]) # Function demonstration m2$PlotStrategybyCatPerformance( df.dataplot, top, categ, "Proficiency levels", "Percentage" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.