legendTable {mapmisc} | R Documentation |
A table in html or Latex showing values associated with colours
legendTable(x, type=c('latex', 'html'), box = c(-0.2, 1, 2), unit = 'em', collapse=NULL)
x |
a |
type |
html or latex compatible output |
box |
dimensions of colour boxes, passed as
depth, height and width to |
unit |
Units for box dimensions |
collapse |
If non-NULL, passed to |
data.frame
or character vector
mytable = data.frame(col=col2html(1:5), label=1:5) legendTable(mytable) legendTable(mytable, collapse=';') legendTable(mytable, type='html')