legend_mtext | R Documentation |
Functions write text outside of maps panels. legend_mtext
(without prefix dot) is a wrapper for non-public .legend_mtext
(with prefix dot).
legend_mtext(...)
## non-public
.legend_mtext(text = "Annotation", cex = 1)
... |
Set of arguments, which are recognized via their names (using regular expressions) and classes. Passed to non-public
| ||||||||||||
text |
Argument of class | ||||||||||||
cex |
Argument of class |
If text
is expression
, then possible way for formatting is:
text=as.expression(substitute(bold(italic("Omega powered by alpha is ",Omega^alpha))))
Returned value of function mtext
from package graphics.
Nikita Platonov platonov@sevin.ru
compose_legend
legend_colorbar
session_grid(NULL)
a <- ursa_dummy(1,min=-10,max=+30)
compose_open(legend=list("right","top","bottom","left"))
panel_new()
ct <- panel_raster(a)
legend_colorbar(ct)#,units=as.expression(substitute(bold(degree*C))))
legend_mtext("Characters are in bold")
legend_mtext(as.expression(substitute(italic(
paste("Units can be interpreted as",~degree*C)))),cex=0.7)
legend_mtext(text=as.expression(substitute(italic(paste("Omega powered by alpha is"
,~~Omega^alpha)))))
compose_close(execute=!FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.