Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion R/mvtsplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,12 @@ mvtsplot <- function(x, group = NULL, xtime = NULL,
if(margin)
colm <- colm[, !empty]
}
pal <- colorRampPalette(brewer.pal(4, palette))
if(length(palette)==1)
# an RColorBrewer palette
pal <- colorRampPalette(brewer.pal(4, palette))
else
# a generic brewer.pal object (vector of colors)
pal <- colorRampPalette(palette)

nlevels <- if(length(levels) == 1)
levels
Expand Down