plotTemporal {scalpel} | R Documentation |
Plot temporal components from Step 3 of SCALPEL.
Description
We plot the temporal components, displaying the estimated fluorescence over time for each spatial component, which result from running Step 3 of SCALPEL.
Usage
plotTemporal(
scalpelOutput,
neuronsToDisplay = NULL,
colVec = NULL,
ylab = "",
title = "",
fileName = NULL,
lambdaIndex = NULL
)
Arguments
scalpelOutput |
An object returned by one of these SCALPEL functions:
|
neuronsToDisplay |
Vector giving which neurons' temporal components to plot. The indices refer to which rows
of |
colVec |
Vector of colors to use, which are chosen automatically if the default value of NULL is used. |
ylab |
Label for the y-axis. |
title |
Label for the title. |
fileName |
If provided, the plot will be saved to the specified location. |
lambdaIndex |
Optional advanced user argument: Index of lambda value for which results will be plotted. Default is
to use lambda value of |
Details
If lambdaIndex
is NULL
, each temporal component is scaled by its largest value. If
lambdaIndex
is specified, each temporal component is scaled by its largest value across all of the lambda values.
Temporal components that were zeroed out in the sparse group lasso are omitted from the plot.
Value
None
See Also
scalpelStep3
, scalpel
, plotResults
Examples
## Not run:
### many of the functions in this package are interconnected so the
### easiest way to learn to use the package is by working through the vignette,
### which is available at ajpete.com/software
#assumes you have run the example for the "scalpel" function
#simplest example with default parameters:
plotTemporal(scalpelOutput = scalpelOutput)
#example with optional parameters:
#plot only two of the neurons and add a title
plotTemporal(scalpelOutput = scalpelOutput, neuronsToDisplay = c(1,2),
title = "First two neurons")
## End(Not run)