I want to make such a graph from my data. What package/function/parameters to use to get this?
Thanks.
I want to make such a graph from my data. What package/function/parameters to use to get this?
Thanks.
try using rcmdr with kmggplot plugin to easily make this in a GUI without bothering about the code
Hi Mukesh,
If you are still looking for a solution, you might want to try this example using xyplot:
#### #load the lattice library for xyplot
library(lattice)
#### #Create a sample dataset df1 with timestamp and 3 variables.
start <- as.POSIXct("2015-08-14")
interval <- 60
end <- start + as.difftime(.9, units="days")
time=seq(from=start, by=interval*60, to=end)
df1=data.frame(timestamp=time,
A01=c(15,20,30,25,60,45,50,10,30,50,60,70,80,100,80,60,70,80,90,60,75,80),
A02=c(30,20,50,40,10,20,30,50,70,50,40,50,60,55,70,15,20,30,25,60,45,50),
A03=c(40,30,10,30,40,50,40,35,40,40,30,50,45,40,30,35,30,30,40,30,45,30))
#### #Find the y axis limits
ylimit=range(c(df1$A01,df1$A02,df1$A03))
#### #plot the values with legend
xyplot(A01+A02+A03 ~ timestamp, data = df1, type = "b", auto.key=list(x=.8,y=.95),ylab="millisecond",xlab="Time",main="Load Test Response time")
Hope it helps.