Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/makepanel_order.R
A makepanel
functionality with user defined order or when no group is specified. This also caters to mutation data or discrete data, and tries to arrange panlemap by decreasing frequency of features and columns.
1 2 3 |
orderl |
required. default is |
mat |
required. data frame. of values that you want to plot. Make sure they are ordered in the same order as |
mat.col |
required. list. of color values to be coded. names of the list are column names of |
mat.type |
required. vector. type of data type in mat. |
NA.flag |
logical, default is |
NA.col |
default is "grey". see |
get.stat |
logical, default is |
legend |
logical. default is |
lnrow |
numeric. Number of rows in each panelet of the legend. Adjust to fit in plot margins. Default is 3 rows. See |
lncol |
numeric. Number of columns on each panelet of the legend. Adjust accordingly for legibility. Default is 5 columns.Only when |
lcex |
numeric. Magnification of legend labels. Default value is |
legend.vec |
vector. When |
legend.col |
vector. When |
lheight |
numeric. If your legend overflows the current |
... |
pass optional arguments here |
...
can pass other parameters. Use it for controlling names and colors of panelets via cex, col
. border line type and thickness can be controlled via lty
and lwd
respectively.
See makepanel
A colored panelemap
of discrete/continuous values is plotted ordered according to the input data.
if get.stat==TRUE and orderl == "user"
tab
of summary statistics is returned. See get.stat
if(orderl == "bin")
tab
of summary statistics is returned. See get.stat
and
mat.order
an ordered data matrix is returned
Arshi Arora
1 2 3 4 5 6 7 8 9 10 11 | #Simulate a 0 and 1 10x10 matrix
mat = matrix(sample(c(0,1),100, replace=TRUE), 10,10)
rownames(mat) = paste0("S", 1:10)
colnames(mat) = paste0("F", 1:10)
mat.type=rep(1, ncol(mat))
cc = c("white", "black")
mat.col<-list(); mat.col[[1]] = cc; mat.col = rep(mat.col,ncol(mat)); names(mat.col) = colnames(mat)
makepanel_order(orderl="bin", mat=mat, mat.col=mat.col,
mat.type=mat.type, legend=TRUE, get.stat=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.