Hi Albart,
This bugged me also for quite some time. After some experiments the
following syntax worked best:
library(lattice)
a = 0.11
xyplot(1:10~10:11, xlab = as.expression(bquote(R^2~" equals "~.(a
With the combination of as.expression and bquote you can mix text, math
expression and
Dear list,
making mathematical expressions in plots is not difficult: expression(phi[1])
for example. At this moment I am stuck in creating a vector of expressions:
pos <- 1:10
lab <- letters[pos]
Now, I would like to create a vector of expressions which I could use for
labeling the x-axis of
2 matches
Mail list logo