title: "lordplot function for R" author: "Brandon Gavett" date: "August 10, 2016" output: html_document
This function was created in response to a contest offered by Rich Jones at the 2016 Latent Variable Methods Workshop.
This is a development package available for installation through github.
library(remotes)
install_github("begavett/lordplot")
Here's an example of how to use this function at its most simple.
The defaults are a 3-item test with:
lordplot()

Below, the lordplot function will attempt to recreate some of Lord's original figures.
[the function will use values of b = 0 for "moderate difficulty" and a = .2 as "poor discriminating power"]
lordplot(b = 0, a = .2)

[the function will use values of b = 0 for "moderate difficulty" and a = 1 as "very high discriminating power"]
lordplot(b = 0, a = 1)

[the function will use values of b = 0 for "moderate difficulty" and a = 5 as "extremely high discriminating power"]
lordplot(b = 0, a = 5)

[the function will use values of b = 2 for "difficult" and a = .5 as "average discriminating power"]
lordplot(b = 2, a = .5)

Both items are highly discriminating (a = 1)
[the function will use values of b = -2 and +2 for "easy" and "difficult," respectively, with a = 1 for both items]
lordplot(b = c(-2, 2), a = c(1, 1))

lordplot(xlim = c(-3, 3), xby = 1)

lordplot(xlim = c(-6, 6), xby = .25)

lordplot(xcol = "#CE1141", ycol = "#13274F", main = "Go Braves!")

lordplot(xcol = "white", ycol = "white", xlabcol = "black", ylabcol = "black")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.