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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:39:40+00:00 2026-06-02T20:39:40+00:00

I want to make a plot like this given only the percentiles in my

  • 0

I want to make a plot like this given only the percentiles in my data.frame. So a row in my data.frame would be something like that:

Name; q0.05; q0.25; q0.45; q0.55; q0.75; q0.95
Italy;   76;    88;    95;   109;   112;   123

And this is what I directly want to translate into the plot.
Any help or suggestions appreciated!

  • 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-02T20:39:43+00:00Added an answer on June 2, 2026 at 8:39 pm

    A complete reproducable example (like what maybe you could have provided…):

    dat <- data.frame(Name = factor(sample(letters[1:5],1000,replace = TRUE)),
                        val = runif(1000))
    
    datSum <- ddply(dat,.(Name),summarise,q05 = quantile(val,0.05),
                                        q25 = quantile(val,0.25),
                                        q45 = quantile(val,0.45),
                                        q55 = quantile(val,0.55),
                                        q75 = quantile(val,0.75),
                                        q95 = quantile(val,0.95))
    datSum$NameAlt <- 1:5
    

    And the plot:

    ggplot(datSum,aes(ymin = NameAlt - 0.2,ymax = NameAlt + 0.2)) + 
        geom_rect(aes(xmin = q05,xmax = q95),fill = "white",colour = "black") + 
        geom_rect(aes(xmin = q25,xmax = q75),fill = 'lightblue',colour = "black") +
        geom_rect(aes(xmin = q45,xmax = q55),fill = 'blue',colour = "black") +
        scale_y_continuous(breaks = 1:5,labels = datSum$Name)
    

    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 want to make a radial stacked barchart. I have something like this: ggplot(diamonds,
I have a data.frame that looks like this. x a 1 x b 2
I have a geom_area plot that looks like this: I want to color everything
I would like to make a script that outputs only the real time value
I want to make a contour plot of some data, but it is possible
I have style sheet with a class name changebackgroundcolor i want make change in
I want to make a scatter plot using matplotlib. If I want to use
I use this code to make figures in Sweave <<label=fig1plot, include=FALSE >>= plot(cars) @
I want to make a daily profile plot: hour vs concentrations. I'm using matplotlib
I would like to disable scrolling in core-plot graph. I have an idea about

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.