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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:11:40+00:00 2026-06-16T04:11:40+00:00

I just started using R, so please be lentient… Currently I am trying to

  • 0

I just started using R, so please be lentient…

Currently I am trying to visualize some disk preformance data gathered by SAR on a Linux server. The header of the CSV data looks like this:

timestamp; DEV; tps; rd_sec/s; wr_sec/s; avgrq-sz; avgqu-sz; await, svctm; %util

DEV represents the device name which I use to group the data:

disks <- split(x = dkstbl, f = dsktbl[, "DEV"])

Using RStudio with the manipulate library, I draw the following plot:

manipulate(
  plot(disks[disk][[1]]$tps[time], 
       disks[disk][[1]]$await[time], 
       xlim = c(0,max(disks[disk][[1]]['tps'])), 
       ylim = c(0,max(disks[disk][[1]]['await'])),
       main = paste(disk,disks[disk][[1]]$X00.00.01[time]),
       xlab = 'IOPS',
       ylab = 'AWAIT'
       ), 
  time = slider(1, 1000),
  disk = picker(as.list(names(disks)))
)

That’s almost what I want, but still not exactly. What I want should contain the data of all the disks on one plot and probably will look somehow like so:

manipulate(
  plot(disks[*][[1]]$tps[time], 
       disks[*][[1]]$await[time], 
       xlim = c(0,max(disks[*][[1]]['tps'])), 
       ylim = c(0,max(disks[*][[1]]['await'])),
       main = paste(disks[*][[1]]$X00.00.01[time]),
       xlab = 'IOPS',
       ylab = 'AWAIT'
       ), 
  time = slider(1, 1000)
)

… where the asteriks (*) needs to be replaced with something that works in order to plot all disks at once. How do I achieve that?

Thanks and Cheers,
Daniel

  • 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-16T04:11:41+00:00Added an answer on June 16, 2026 at 4:11 am

    First of all, I don’t see any reason why you split your original data.frame in the first place.

    Second, if I understand correctly you want to see the observations from all disks, for one specific point in time, right?

    So I think the following solves your problem:

    disk <- do.call("rbind", disks)
    manipulate(
      plot(disk$tps[disk$Time==time],
         disk$await[disk$Time==time],
         xlim = c(0,max(disk$tps)),
         ylim = c(0,max(disk$await)),
         main = "All disks",
         xlab = 'IOPS',
         ylab = 'AWAIT'
      ),
      time = picker(as.list(levels(disk$Time)))
    )
    

    One should strive to keep things simple…

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

Sidebar

Related Questions

Let me preface this question. I have just started using jquery, so please be
I just started using/learning Python and have some questions. I have a text file
I've just started using Qt, so please bear with me. When I use QTableWidget->getItemAt(),
Please bear with me as I've just started using NetBeans for the first time!
I just started using GIT yesterday and i was trying to do something but
I have just started using django-cms so please forgive my newbieness. Every time i
I've just started using maven for trying to build a multi module project. Everything
I just started using flash so this might be a simple thing so please
I've just started with the Play Framework and I'm running into some problems using
I just started using Django and Python and I'm trying to build a photo

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.