Subversion Repositories bdplot

Rev

Rev 57 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 57 Rev 65
Line 1... Line 1...
1
### a function to plot all columns in a matrix
1
### a function to plot all columns in a matrix
2
 
2
 
3
bdmatplot <- function(x,y=NULL,cols=NULL,ltys=NULL,...){
3
bdmatplot <- function(x,y=NULL,cols=NULL,ltys=NULL,...){
-
 
4
##  browser()
4
 
5
  
5
  if(is.null(y)){
6
  if(is.null(y)){
6
    y <- x
7
    y <- as.matrix(x)
7
    dim.y <- dim(y)
8
    dim.y <- dim(y)
8
    x <- 1:dim.y[1]
9
    x <- 1:dim.y[1]
9
  } else {
10
  } else {
-
 
11
    y <- as.matrix(y)
10
    dim.y <- dim(y)
12
    dim.y <- dim(y)
11
  }
13
  }
-
 
14
  ## if(is.null(dim(y))){
-
 
15
  ##   dim.y <- c(length(y),1)
-
 
16
  ## }
12
##  print(dim.y)
17
##  print(dim.y)
13
  
18
 
14
  if(is.null(cols))
19
  if(is.null(cols))
15
    cols <- 2:(dim.y[2]+1)
20
    cols <- 2:(dim.y[2]+1)
16
 
21