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

  • Home
  • SEARCH
  • 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 6688675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:25:49+00:00 2026-05-26T05:25:49+00:00

I have a dataframe with rows corresponding the the upper and lower limits of

  • 0

I have a dataframe with rows corresponding the the upper and lower limits of confidence intervals for a parameter. If there are n rows, there are n variables. There are two columns, one with the lower confidence interval limit “lower” and one for the “upper” limit. The row names correspond to the variable names. Something like this

      lower  upper  
y1      7.923  9.22
y2      7.105  8.74 
y3      8.185  9.54 
y4      8.157  9.51 

I would like to create a plot to display these confidence intervals as bars, preferably with flanges at each end.

If someone could tell me a good way to do this I would be grateful !

Thanks
PS

  • 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-26T05:25:50+00:00Added an answer on May 26, 2026 at 5:25 am

    bwplot in lattice makes box-and-whisker plots:

    library(lattice)
    bwplot(lower+upper~var, data=dat)
    

    See ?bwplot and ?lattice for more detail.

    enter image description here


    In general, you can use the full power of R by letting the plot function summarise the dat for you. For example:

    dat <- data.frame(
      var <- sample(paste("y", 1:4, sep=""), 100, replace=TRUE),
      val <- rnorm(100)
      )
    
    plot(val~factor(var), data=dat, col="cyan")
    

    enter image description here

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

Sidebar

Related Questions

Say I have a dataframe df with two or more columns, is there an
I have a dataframe (14.5K rows by 15 columns) containing billing data from 2001
I have two dataframes and I wish to insert the values of one dataframe
I have a dataframe with approximately 500,000 rows and four columns. The dataframe contains
I have a dataframe made up of 400'000 rows and about 50 columns. As
I have a dataframe with 6 columns and many rows that includes positions for
I have a dataframe with numeric entries like this one test <- data.frame(x =
Suppose I have a dataframe like this one: df <- data.frame (id = c(a,
I have a data frame with two columns. First column contains categories such as
I have a big dataframe with columns such as: ID, time, OS, IP Each

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.