1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zcolorbar.R
\name{colorbar}
\alias{colorbar}
\title{Add color-bar to plot}
\usage{
colorbar(
clut = Col(rev(rainbow(11, start = 0, end = 0.69)), alpha),
x.range = c(-0.5, 0.5),
y.range = c(-0.1, 0.1),
values = seq(clut),
digits = 2,
label.offset,
srt = 45,
cex = 0.5,
border = NA,
alpha = 0.5,
position = 1,
direction = c("horizontal", "vertical"),
...
)
}
\arguments{
\item{clut}{Color look-up table}
\item{x.range}{x range}
\item{y.range}{y range}
\item{values}{label values}
\item{digits}{number of digits}
\item{label.offset}{label offset}
\item{srt}{rotation of labels}
\item{cex}{text size}
\item{border}{border of color bar rectangles}
\item{alpha}{Alpha (transparency) level 0-1}
\item{position}{Label position left/bottom (1) or top/right (2) or no text (0)}
\item{direction}{horizontal or vertical color bars}
\item{\dots}{additional low level arguments (i.e. parsed to \code{text})}
}
\description{
Add color-bar to plot
}
\examples{
\dontrun{
plotNeuro(x,roi=R,mm=-18,range=5)
colorbar(clut=Col(rev(rainbow(11,start=0,end=0.69)),0.5),
x=c(-40,40),y.range=c(84,90),values=c(-5:5))
colorbar(clut=Col(rev(rainbow(11,start=0,end=0.69)),0.5),
x=c(-10,10),y.range=c(-100,50),values=c(-5:5),
direction="vertical",border=1)
}
}
|