Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7728551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:44:48+00:00 2026-06-01T05:44:48+00:00

I have a data set of item difficulties that correspond to items on a

  • 0

I have a data set of item difficulties that correspond to items on a questionnaire that looks like this:

##         item  difficulty
## 1  ITEM_01_A  2.31179818
## 2  ITEM_02_B  1.95215238
## 3  ITEM_03_C  1.93479536
## 4  ITEM_04_D  1.62610855
## 5  ITEM_05_E  1.62188759
## 6  ITEM_06_F  1.45137544
## 7  ITEM_07_G  0.94255210
## 8  ITEM_08_H  0.89941812
## 9  ITEM_09_I  0.72752197
## 10 ITEM_10_J  0.61792597
## 11 ITEM_11_K  0.61288399
## 12 ITEM_12_L  0.39947791
## 13 ITEM_13_M  0.32209970
## 14 ITEM_14_N  0.31707701
## 15 ITEM_15_O  0.20902108
## 16 ITEM_16_P  0.19923607
## 17 ITEM_17_Q  0.06023317
## 18 ITEM_18_R -0.31155481
## 19 ITEM_19_S -0.67777282
## 20 ITEM_20_T -1.15013758

I want to make an item map of these items that looks similar (not exactly) to this (I created this in word but it lacks true scaling as I just eyeballed the scale). It’s not really a traditional statistical graphic and so I don’t really know how to approach this. I don’t care what graphics system this is done in but I am more familiar with ggplot2 and base.

I would greatly appreciate a method of plotting this sort of unusual plot.

Here’s the data set (I’m including it as I was having difficulty using read.table on the dataframe above):

DF <- structure(list(item = c("ITEM_01_A", "ITEM_02_B", "ITEM_03_C", 
    "ITEM_04_D", "ITEM_05_E", "ITEM_06_F", "ITEM_07_G", "ITEM_08_H", 
    "ITEM_09_I", "ITEM_10_J", "ITEM_11_K", "ITEM_12_L", "ITEM_13_M", 
    "ITEM_14_N", "ITEM_15_O", "ITEM_16_P", "ITEM_17_Q", "ITEM_18_R", 
    "ITEM_19_S", "ITEM_20_T"), difficulty = c(2.31179818110545, 1.95215237740899, 
    1.93479536058926, 1.62610855327073, 1.62188759115818, 1.45137543733965, 
    0.942552101641177, 0.899418119889782, 0.7275219669431, 0.617925967008653, 
    0.612883990709181, 0.399477905189577, 0.322099696946661, 0.31707700560997, 
    0.209021078266059, 0.199236065264793, 0.0602331732900628, -0.311554806052955, 
    -0.677772822413495, -1.15013757942119)), .Names = c("item", "difficulty"
    ), row.names = c(NA, -20L), class = "data.frame")

Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:44:50+00:00Added an answer on June 1, 2026 at 5:44 am

    Here is a solution with base graphics.

    # Compute the position of the labels to limit overlaps:
    # move them as little as possible, but keep them 
    # at least .1 units apart.
    library(quadprog)
    spread <- function(b, eps=.1) {
      stopifnot(b == sort(b))
      n <- length(b)
      Dmat <- diag(n)
      dvec <- b
      Amat <- matrix(0,nr=n,nc=n-1)
      Amat[cbind(1:(n-1), 1:(n-1))] <- -1
      Amat[cbind(2:n,     1:(n-1))] <-  1
      bvec <- rep(eps,n-1)
      r <- solve.QP(Dmat, dvec, Amat, bvec)
      r$solution
    }
    DF <- DF[ order(DF$difficulty), ]
    DF$position <- spread(DF$difficulty, .1)
    
    ylim <- range(DF$difficulty)
    plot( NA, 
      xlim = c(.5,2), 
      ylim = ylim + .1*c(-1,1)*diff(ylim),
      axes=FALSE, xlab="", ylab="" 
    )
    text(.9,  DF$position, labels=round(DF$difficulty,3), adj=c(1,0))
    text(1.1, DF$position, labels=DF$item, adj=c(0,0))
    arrows(1,min(DF$position),1,max(DF$position),code=3)
    text(1,min(DF$position),labels="Easier",adj=c(.5,2))
    text(1,max(DF$position),labels="More difficult",adj=c(.5,-1))
    text(.9, max(DF$position),labels="Difficulty",adj=c(1,-2))
    text(1.1,max(DF$position),labels="Item",      adj=c(0,-2))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set up a Core Data model that includes an entity, Item with
I have a data set that resembles this: id product_id size color price created_date
I have a data set that that I would like to call in a
I have a table code_prices that looks something like this: CODE | DATE |
I have code that downloads a set of data (item and value) paired. The
I have a data set that is around 700 rows with eight columns of
I have a large data set that is updated once a day. I am
I have a MySQL table that holds rows of configuration data, ie: id item
Say, we have some items, and each defines some partial sorting rules, like this:
I have a data set that is organized in the following manner: Timestamp|A0001|A0002|A0003|A0004|B0001|B0002|B0003|B0004 ...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.