Displaying 1 result from an estimated 1 matches for "nuccode".
Did you mean:
ncode
2003 Jan 31
2
Varying texts in expression(paste())
..., I am often using
expression() to label the plots with nuclide names written with
superscripts, e.g.
expression(paste("Releases of ", { }^{99},Tc," (TBq/year)"))->ywtext
But, is there any simple way to change the number and name of the nuclide
through a variable? I tried
nuccode=expression({ }^{99},Tc)
expression(paste("Releases of ", as.expression(nuccode) ,"
(TBq/year)"))->ywtext
But, obiously, since as.expression does not return a chr, it was used
literally in the text on the figure, i.e. "Releases of
as.expression(nuccode) (TBq/year)"...