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 7643497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:27:53+00:00 2026-05-31T09:27:53+00:00

I am trying to plot a bunch of ROC areas for different datasets and

  • 0

I am trying to plot a bunch of ROC areas for different datasets and different algorithms.
I have three variables: “Scheme” which specifies the algorithm used, “Dataset” is the dataseet that the algorithm is being tested on, and “Area_under_ROC”.

I am using the lattice library in R, with the following command:

dotplot(Scheme ~ Area_under_ROC | Dataset, data = simulationSummary, layout = c(4,6))

and this is what I get:

dotplot of Scheme vs. Area_under_ROC conditioned on Dataset

What I’d like to know is

  • How can make the labels on the y-axis readable? Right now, they’re all squeezed together.
  • How can I re-arrange the panel in such a way that the datasets marked with “100” form the last column, but the other columns stay the same?

I’d very much appreciate any comments or pointers.
Many Thanks!

  • 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-05-31T09:27:54+00:00Added an answer on May 31, 2026 at 9:27 am

    Some ideas:

    1. Use a smaller font size for y-axis labels, e.g. scale=list(y=list(cex=.6)). An alternative would be to preserve uniform font size, but separate your output on several pages (this can be controlled with layout=), or, probably better, to show all data from the same dataset (A to F, hence 4 points for each algorithm) or by sample size (10 to 100, hence 6 points for each algorithm) with a group= option. I would personally create two factors, sample.size and dataset.type for that.
    2. Relevel your factor Dataset, so that the dataset you are interested appear where layout will put them, or (better!) use index.cond to specify a particular arrangement for your 24 panels. E.g.,

      dfrm <- data.frame(algo=gl(11, 1, 11*24, labels=paste("algo", 1:11, sep="")), 
                         type=gl(24, 11, 11*24, labels=paste("type", 1:24, sep="")),
                         roc=runif(11*24))
      p <- dotplot(algo ~ roc | type, dfrm, layout=c(4,6), scale=list(y=list(cex=.4)))
      

      will arrange panels in sequential order, from bottom left to top right (type1 in bottom left panel, type24 in top right panel), while

      update(p, index.cond=list(24:1))
      

      will arrange panels in the reverse order. Just specify a list with expected panel locations.


    Here is an example of what I have in mind with Point 1 and the use of two factors instead of one. Let us generate another artificial dataset:

    dfrm <- data.frame(algo=gl(11, 1, 11*24, labels=paste("algo", 1:11, sep="")),
                       dataset=gl(6, 11, 11*24, labels=LETTERS[1:6]),
                       ssize=gl(4, 11*6, 11*24, labels=c(10,25,50,100)), 
                       roc=runif(11*24))
    xtabs(~ dataset + ssize, dfrm)  # to check allocation of factor levels 
    dotplot(algo ~ roc | dataset, data=dfrm, group=ssize, type="l", 
            auto.key=list(space="top", column=4, cex=.8, title="Sample size", 
                          cex.title=1, lines=TRUE, points=FALSE))
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bunch of points that I am trying to plot using matplotlib.
I am trying to plot side by side the following datasets dataset1=data.frame(obs=runif(20,min=1,max=10)) dataset2=data.frame(obs=runif(20,min=1,max=20)) dataset3=data.frame(obs=runif(20,min=5,max=10))
I am trying to plot graph in which i want to fill graph area
I am trying to plot bars in groups of three. In some of my
So I'm trying to plot 2 different arrays of the same dimensions using python's
I have a frequency distribution I am trying to plot in R. The dataset
I'm trying to use facet_wrap to plot a bunch of dataset as scatterpoints, each
I'm trying to plot the response of a control system which has two unit
I am trying to plot a bunch of data points (many thousands) in Python
I have been trying to plot a map on axmapcontrol and use the same

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.