p2.metadata.from.factor {pagoda2} | R Documentation |
Generate a list metadata structure that can be passed to a 'pagoda2' web object constructor as additional metadata given a named factor
Description
Generate a list metadata structure that can be passed to a 'pagoda2' web object constructor as additional metadata given a named factor
Usage
p2.metadata.from.factor(
metadata,
displayname = NULL,
s = 1,
v = 1,
start = 0,
end = NULL,
pal = NULL
)
Arguments
metadata |
named factor with metadata for individual cells, names must correspond to cells |
displayname |
character Name to display for the metadata (default=NULL) |
s |
numeric Value for rainbow palette (default=1) |
v |
numeric Value for rainbow palette (default=1) |
start |
numeric Starting value (default=0) |
end |
numeric Ending value (default=NULL) |
pal |
optional vector of colours to use, if provided overrides s,v,start and end parameters (default=NULL) |
Value
list of data, levels, palette to be passed to 'pagoda2' web object constructor
[Package pagoda2 version 1.0.12 Index]