plotZSlice: Plot z slice of brainImage instance

Description Usage Arguments Value Examples

View source: R/plotZSlice.R

Description

Plot given z slice of brainImage instance

Usage

1
2
plotZSlice(data, z, index = 4, ret = FALSE, add = FALSE,
  col = grDevices::gray.colors(1024), main = "", dimV = NULL)

Arguments

data

data.frame with x,y,z,val columns

z

selected z slice to plot

index

column with values to plot

ret

return the image (T,F) as matrix

add

add to existing plot

col

color palette

main

main

dimV

dimension values: which are should be plotted? min/max X,Y values

Value

list of min/max values used for this plot

Examples

1
2
3
4
5
data <- data.frame(x=rep(1:10, 5), 
y=c(rep(1,10),rep(2,10),rep(3,10),rep(4,10),rep(5, 10)), 
z=rep(1, 50), rnorm(50))
img <- new("brainImage", data, "test", 10)
plotZSlice(img, 1)

mknoll/imageanalysisBrain documentation built on May 23, 2019, 2:01 a.m.