You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the feature request! You’re right, this graph should be able to
use the item names directly, and should be more flexible in general. I like
your suggestion for a TRUE/FALSE flag. I pushed a commit to the develop
branch that I think will meet your use case, with some additions for other
possible uses. The new version has the following changes:
- added parameter label.items
- when NULL (default) or FALSE, is 1:[number of items]
- when TRUE, takes the item labels from the row names
- can also be a list of item names
- added parameter label.steps
- when NULL (default) or FALSE, is 1:[number of levels]
- when TRUE, takes the step labels from the column names
- can also be a list of step names
- added parameter label.sep with default value “.”
- added parameter thr.lab.sep with default value “ | “
I also added in some flexible parameter lists that I created recently for
itemModern (also available in the develop branch). The goal of these lists
is to allow people to access the parameters of the points/text/etc.
functions directly. So, for itemClassic, I added:
- thr.lab.par (pass ‘text' parameters)
- axis.logits.par (pass ‘axis' parameters)
- logits.text.par (pass ‘mtext’ parameters)
install_github("david-ti/wrightmap",ref = "develop")
fpath <- system.file("extdata", package="WrightMap")
model1 <- CQmodel(p.est = file.path(fpath,"ex2.eap"), show = file.path(fpath
wrightMap(model1,item.side = itemClassic) # default
wrightMap(model1,item.side = itemClassic, label.items = TRUE) # use item
wrightMap(model1,item.side = itemClassic,label.items = LETTERS[1:10],
label.steps = c("(a)","(b)"), label.sep = "", thr.lab.sep = ", ",thr.lab.par
= list(font = 2), axis.logits.par = list(at = seq(from = -3, to = 4, by = .5
)), logits.text.par = list(cex = .6, line = 2)) # custom parameters
This last gives the following Wright Map:
Let me know if you have any other requests! We are always glad to find
people using our package and interested in their use cases.
On March 21, 2018 at 7:52:04 PM, LCisannoyed (firstname.lastname@example.org) wrote:
Currently the WrightMap uses a sequential list for item.labels (01.1 , 02.1
, 03.1 , ...).
These labels have no bearing on the actual name of the item. Additionally
this can get pretty confusing if an item has already been removed.
Could the itemClassic function be amended to allow a user to use their own
item names? something like "item.names.labels=TRUE/FALSE "
In example below, item 2 was removed leaving 44 items. The first chart
(original WrightMap code) displays "02.1" as an item (its actually item 3).
Using the item names means that we have no confusion about item 2 / item 3.
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6>, or mute the thread