R/plot.ces.R

Defines functions plot.ces

Documented in plot.ces

plot.ces <-
function(x, sites=FALSE, graph='X', N=20, sitelist=NULL, col=c('red', 'blue'), ...){

  if( class(x)[1] != 'ces' )
    stop('Not a CES object!')
  
  switch(class(x)[2], 
         plots = plot.ces.plots(x),
         plot.summary = plot.ces.plots(x),
         counts = plot.ces.counts(x, sites=sites),
         data = plot.ces.data(x, N=as.integer(N)),
         glmfit = plot.ces.glmfit(x, graph=graph, ... ),
         markfit = plot.ces.markfit(x),
         ch = plot.ces.ch(x, sitelist=sitelist, col=col, ...),
         res.table = plot.ces.table(x, graph=graph, ...),
         cat('No plot method defined!\n'))
  
}
btorobrob/cesr documentation built on June 9, 2025, 5:39 a.m.