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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:08:56+00:00 2026-06-17T07:08:56+00:00

I have a huge collection of data with date, client and its NFS usage.

  • 0

I have a huge collection of data with date, client and its NFS usage. I’m using lattice R package for plotting, as adviced on superuser. Also, Stackoverflow helped me on converting the date string to an actual date object.

Now, my code is this:

require(lattice)

logfile <- read.table(file="nfsclients-2d.log")
names(logfile) <- c("Date","Client","Operations")

allcol <- c("blue","chocolate4","cornflowerblue","chartreuse4","brown3","darkorange3","darkorchid3","red","deeppink4","lightsalmon3","yellow","mistyrose4","seagreen3","green","violet","palegreen4","grey","slateblue3","tomato2","darkgoldenrod2","chartreuse","orange","black","yellowgreen","slategray3","navy","firebrick1","darkslategray3","bisque3","goldenrod4","antiquewhite2","coral","blue4","cyan4","darkred","orangered","purple4","royalblue4","salmon")
col=allcol[0:length(levels(logfile$Client))]

svg(filename="/tmp/nfsclients-2d.svg",width=14,height=7)

times <- as.POSIXct(strptime(levels(logfile$Date), format="%m/%d-%H:%M"))
logfile$Date <- times[logfile$Date]
xyplot(Operations~Date,group=Client,data=logfile,jitter.x=T,jitter.y=T,
 aspect = 0.5, type = "l",
 par.settings=list(superpose.line=list(col=col,lwd=3)),
 xlab="Time", ylab="Operations", main="NFS Operations (last 2 days, only clients with >40 operations/sec)",
 key=list( text=list(levels(logfile$Client)), space='right',
           lines=list(col=col),columns=1,lwd=3,cex=0.75))

dev.off()

And the output file is this (stripped out the legend):

enter image description here

The X axis values are not very useful here: “tue” “tue” “wed” “wed”. It seems that it only takes the first significative value as label. Some more labels (maybe 6 or 7) would be more useful also.

When plotting 2 weeks it’s even worse. Only 2 values are displayed on the X axis: “2012” “2013”. Not even repeated, only 2 values!

The data I’m plotting.

  • 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-17T07:08:58+00:00Added an answer on June 17, 2026 at 7:08 am

    You will need to construct a proper interval for this axis. If this is really the prior two days then perhaps something like:

      interval <- as.POSIXct( Sys.Date() - c(1,3) )
    

    Then you need to construct a scales argument for the x-axis:

     xyplot(Operations~Date,group=Client,data=logfile,jitter.x=T,jitter.y=T,
             aspect = 0.5, type = "l",
             scales=list(x=list(at= .......  , 
                         labels=format( ......, "%H:%M") ),
              #rest of code
             )
    

    What you put in for the ….. value will be something along the lines of:

       seq( interval[2], interval[1], by="4 hour")
    

    This is what is returned from a format.POSIXt call:

    > format( seq( interval[2], interval[1], by="4 hour") , "%H:%M")
    [1] "16:00" "20:00" "00:00" "04:00" "08:00" "12:00" "16:00" "20:00" "00:00" "04:00" "08:00" "12:00"
    [13] "16:00"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read huge amount of data , Using Tcp connection and i want
I have huge amount of data from database, i need to get or store
I have huge data which is static. I need to save it within the
I have huge amont of geographic data represented in simple object structure consisting only
I have a huge XML document 200MB in size containing textual information. The data
I have a huge number of items to be stored in a collection. I
I have an application to transfer data from remote systems to HDFS using map
I have a listview which loads its data from sqlite database. Each row in
I have a huge collection of millions of records, there will be 4 fields
Using clojure I have a very large amount of data in a sequence and

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.