summaryrefslogtreecommitdiff
path: root/R/idframe.R
diff options
context:
space:
mode:
authorSuraj Yerramilli2016-05-21 19:03:55 +0530
committerSuraj Yerramilli2016-05-21 19:03:55 +0530
commit0b25aed6c241ec05c0501165c9a4fc53772e4012 (patch)
treef7f5d006f728883a68a39180757be460b20f503c /R/idframe.R
parentae04e46e0ba498fc9e64debc892a0beeec19b275 (diff)
downloadSysID-R-code-0b25aed6c241ec05c0501165c9a4fc53772e4012.tar.gz
SysID-R-code-0b25aed6c241ec05c0501165c9a4fc53772e4012.tar.bz2
SysID-R-code-0b25aed6c241ec05c0501165c9a4fc53772e4012.zip
loading ggplot2 namespace
Diffstat (limited to 'R/idframe.R')
-rw-r--r--R/idframe.R2
1 files changed, 2 insertions, 0 deletions
diff --git a/R/idframe.R b/R/idframe.R
index f38b94e..c0fc2bf 100644
--- a/R/idframe.R
+++ b/R/idframe.R
@@ -66,6 +66,7 @@ idframe <- function(output,input=NULL,Ts = 1,start=0,end=NULL,
#'
#' @export
plot.idframe <- function(x,col="steelblue",lwd=1,main=NULL,size=12){
+ loadNamespace("ggplot2")
if(nInputSeries(x)==0){
data <- outputData(x)
} else{
@@ -191,6 +192,7 @@ idfrd <- function(respData,freq,Ts,spec=NULL,covData=NULL,
#'
#' @export
plot.idfrd <- function(x,col="steelblue",lwd=1){
+ loadNamespace("ggplot2")
nfreq <- dim(x$freq)[1]
mag <- 20*log10(Mod(x$resp))
nout <- dim(mag)[1]; nin <- dim(mag)[2]