diff options
author | Suraj Yerramilli | 2015-06-06 19:56:01 +0530 |
---|---|---|
committer | Suraj Yerramilli | 2015-06-06 19:56:01 +0530 |
commit | 039cc10fb201f39b06bc53ce3127f0a00d140b98 (patch) | |
tree | 0cfa79b8bc49ffeb366bd50af063ff9e7f7695dd | |
parent | 95082ac2b48ee107b0faa18224bd7211cfeba297 (diff) | |
download | SysID-R-code-039cc10fb201f39b06bc53ce3127f0a00d140b98.tar.gz SysID-R-code-039cc10fb201f39b06bc53ce3127f0a00d140b98.tar.bz2 SysID-R-code-039cc10fb201f39b06bc53ce3127f0a00d140b98.zip |
Documenting plot.idfrd
-rw-r--r-- | R/idframe.R | 11 | ||||
-rw-r--r-- | man/plot.idfrd.Rd | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/R/idframe.R b/R/idframe.R index 80a4f91..a4bebdd 100644 --- a/R/idframe.R +++ b/R/idframe.R @@ -190,9 +190,18 @@ idfrd <- function(response,freq,Ts){ #' Plotting idfrd objects #' -#' Plot method for frequency resopnse data +#' Generates the bode plot of the given frequency response data. It uses the +#' ggplot2 plotting engine #' #' @param object An object of class \code{idframe} +#' +#' @seealso \code{\link[ggplot2]{ggplot}} +#' +#' @examples +#' data(frf) +#' frf <- spa(data) # Estimates the frequency response from data +#' plot(frf) +#' #' @export plot.idfrd <- function(object){ require(ggplot2);require(reshape2);require(signal) diff --git a/man/plot.idfrd.Rd b/man/plot.idfrd.Rd index 5daf85c..0c7d662 100644 --- a/man/plot.idfrd.Rd +++ b/man/plot.idfrd.Rd @@ -10,6 +10,15 @@ \item{object}{An object of class \code{idframe}} } \description{ -Plot method for frequency resopnse data +Generates the bode plot of the given frequency response data. It uses the +ggplot2 plotting engine +} +\examples{ +data(frf) +frf <- spa(data) # Estimates the frequency response from data +plot(frf) +} +\seealso{ +\code{\link[ggplot2]{ggplot}} } |