plot.CGr | R Documentation |
Creates a plot of a series of replicated data. It shows the summary of the series. Optionally it shows the limits of the range of analysis and the estimated local minimum computed as the center of gravity.
## S3 method for class 'CGr'
plot(x, ...)
x |
a CGr object |
... |
additional parameters |
No return value, called for graphical display.
H. Gasca-Aragon
See Also as CGr
, print.CGr
require(ECG)
N<- 1000
set.seed(12345)
d1<- 1-sin(seq(1:(5/2*N))/N*pi-pi*3/4)+rnorm(5/2*N, 0, 0.01)
d2<- 1-sin(seq(1:(5/2*N))/N*pi-pi*3/4)+rnorm(5/2*N, 0, 0.01)
dat<- data.frame(x=1:length(d1),
y1=100*(d1-min(d1))/(max(d1)-min(d1)),
y2=100*(d2-min(d2))/(max(d2)-min(d2))
)
CGres<- CGr(dat, columns=c(2,3))
plot(CGres)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.