cd <- create_cat_design(ip = generate_ip(n = 100))
co <- cat_sim(true_ability = rnorm(1), cd = cd)
plot(co)
# Suppress item difficulties
plot(co, plot_b = FALSE)
# Suppress Standard Error Band
plot(co, se_band = FALSE)
# Add final theta estimate line
plot(co, horizontal_line = "final_theta")
plot(co, horizontal_line = "true_theta")
# Change Title
plot(co, title = "CAT Progress for Examinee ABC")
if (FALSE) {
# Change Text Size
plot(co) + theme(text=element_text(size=20))
# Change x-axis label
plot(co) + xlab("My New X Axis Label")
# Change y limits of the graph
plot(co) + coord_cartesian(ylim = c(-5,5))
# Change legend position
plot(co) + theme(legend.position="none")
plot(co) + theme(legend.position="left")
# Add a horizontal line
plot(co) + geom_hline(yintercept = -1, color = "red", linetype = 5)
}
Run the code above in your browser using DataLab