Displaying 20 results from an estimated 10000 matches similar to: "greek letters, text, and values in labels"
2006 Mar 06
3
how to make plotmath expression work together with paste
Recent questions about using plotmath have renewed my interest in this question
I want to have expressions take values of variables from the
environment. I am able to use expressions, and I am able to use paste
to put text and values of variables into
plots. But the two things just won't work together.
Here is some example code that shows what I mean.
plot(NA,xlim=c(0,100),ylim=c(0,100))
2011 Jun 02
2
plotmath: paste string and expression [from a vector of expressions]
Dear all,
I have a vector of expressions and would like to "paste" some string to it before using it in a plot:
vars <- vector("expression", 2)
vars[1] <- expression(alpha)
vars[2] <- expression(beta)
plot(0, 0, main=substitute(bold("Foo" ~~ VAR), list(VAR=vars[2]) ))
Although I tried hard, I just can't figure out how to solve this. The title should be
2012 Aug 16
4
Variables and greek letters in a plot title
Hello
This is a problem I encountered repeatedly and I found no answer that made
me really happy. I hope it is not too trivial.
I would like to give the concentration of a substance in a plot title:
5 ug/ml substance
the '5' would be a variable and the ug should be micrograms (with greek
letter mu). It is the mu that causes the problems for me. I failed using
various combinations of
2006 Mar 05
2
plotting partial deriviatives
Dear R Helpers:
I am trying to annotate a plot. The following code snippet works, but it is
kind of a kludge since it adds the partial derivative symbols after creating
the plotmath frac(). Is there a more elegant way to write a partial
derivative?
dev.off()
plot(NA, xlim=c(-3,3), ylim=c(0,1.6), xlab="", ylab="", tck=-0.015)
text(1.6, 1, expression(paste("slope =
2005 Nov 01
2
Greek letters in plots
Hi, all. I know that this is probably something that others have asked,
but I can't find a reference in either the FAQ or the help pages.
I'm trying to find a way to put Greek letters as a label of the plot
*with* a value from the data. Previously I've used pasted and the word
"rho".
* paste("rho=", cor2[i])
will produce a label of
2009 Aug 03
2
boxplot( ) headers with Greek letters, values, and text
Hi -
I've been using the option
main=bquote(paste(mu==.(mu),", ",lambda==.(lambda),", ",truncation==.(truncation),", ",N[T]==.(n)))
to produce a title when using the "plot" command - a title which includes variable names (two Greek)
along with their values.
The above option, however, does not work within the "boxplot" command.
Any
2010 Jun 05
2
Greek letters and formatted text
Hi,
I desperately try to do s.th. like
m=1.23455
sig=0.84321
plot(1,1)
text(0.8,1,sprintf("<Sigma>=%1.2f?%1.2f",m,sig))
where actually the greek letter should appear for Sigma.
I have tried all sorts of combinations with expression and paste etc. but could not work it out. Maybe someone has an idea and can help me.
Thanks a lot+
Thomas
2003 Jul 22
4
greek in main title
Hello,
I have written a function that demonstrates the CLT by
generating samples following the exponential distribution,
calculating the means, plotting the histogram, and drawing
the limiting normal curve as an overlay. I have the title
of each histogram state the sample size and rate (1/theta)
for the exponential (the output is actually 4 histograms),
but I can't get the greek letter theta
2009 Jan 04
2
Combining greek letters with the contents of variables
Dear r-help list,
I am trying to combine a greek letter lambda with the contents of a variable v in the title of a plot. However, it seems that having v inside the expression() function causes it not to be evaluated, on the other hand having expression(lambda) inside something else like paste causes it to be evaluated to a string. Here is an example of what I want to do:
2012 May 19
1
Names of Greek letters stored as character strings; plotmath.
I had such good luck with my previous question to r-help, (a few minutes
ago) that I thought I would try again with the following query:
> Suppose I have
>
> xNm <- "gamma"
>
> I would like to be able to do
>
> plot(1:10,xlab = <something involving xNm">)
>
> and get the x axis label to be the Greek letter gamma
> (rather than the
2011 Oct 06
2
Titles changing when a plot is redrawn
I ran into a problem with titles on graphs. I wanted a graph with
multiple subplots, with each having a title that involved both
a Greek letter and an identifier for each graph. Below is a
simplified version of code to do this. The graph appears fine,
with the first graph having "i=1" in the title, and the second
graph having "i=2" in the title. However, when I resize the
2010 Aug 31
1
Greek letters and variable values in lattice plot annotation
I'd like to annotate a lattice plot, e.g. xyplot, with text containing both
Greek letters and variable values. In the base graphics plot command this
can be accomplished with e.g. main =
substitute(paste(lambda,"=",var),list(var=var)), where var is a variable
that contains the value. When I try to do this in xyplot, I get the error
message "object 'lambda' not
2007 Jul 23
2
persp and greek symbols in the axes labels
Hello,
I am plotting a 3D function using persp and I would like to use greek
symbols in the axes labels.
I have found examples like this one on the web:
plot(0,0,xlab=expression(kappa[lambda]),ylab=substitute(paste(phi,"=",true,sigma),list(true=5)))
this works well with plot but not with persp:
with the command
persp(M,theta = -20,phi =
2008 Aug 07
1
Mtext doesn't display characters in italic when I use a greek symbol
Following on from my previous mail!
plot(1:10,1:10)
mtext("title", side=3, adj=0, font=3, cex=1.5)
This works as expected and puts the font in italics.
tag <- "A)"
suffix <- "genea::"
plot(1:10,1:10)
mtext(bquote(.(tag) ~ Delta * .(suffix)), side=3, adj=0, font=3,
cex=1.5)
Here, the font isn't in italics, it's normal.
I presume this is some
2000 Jun 26
1
persp greek label problem (PR#583)
Full_Name: Ramin Nakisa
Version: 1.1.0
OS: i386 linux
Submission from: (NULL) (192.127.94.7)
Labels created with expression seem to disappear, e.g. the x axis label in
x <- -6:16
contour(outer(x, x), method = "edge", vfont = c("sans serif", "plain"),
xlab=expression(theta[0]), ylab=expression(theta[1]))
and all three labels in
x <- -6:16
persp(outer(x, x),
2008 Mar 28
1
Device problems in a loop.
I have tried the following code to plot and save many box plots in files. The code works by itself, but does not run in a loop. The error indicates that there is no device. The error is printed below the code.
Code:
for(i in 1:len)
{
A = as.numeric(delta[Delta[i,1]])
B = as.numeric(delta[Delta[i,2]])
C = as.numeric(delta[Delta[i,3]])
D = as.numeric(delta[Delta[i,4]])
data
2024 Mar 11
1
evince not showing "greek" and "math" in *.pdf plots
This problem has bugged me for several years now,
and our own IT staff has tried a few things, but then never
cared enough to persist fixing it.
It *is* a bug in evince, the standard pdf viewer on Fedora and
IIUC also quite few other Linux distributions, and
*not* a bug in R; hence I am asking for help/hints here.
A very simple example:
2003 Sep 12
2
Getting greek letters in plot labels and title
Hi,
Does any one knows how to include greek letters in plot labels and plot
titles ?
Thanks a lot
paul
---
[[alternative HTML version deleted]]
2006 Aug 24
2
help with pasting + expressions?
I can't believe I'm having such a hard time with this and I haven't been
able to find out how to solve this...
lab <- expression( paste( hat(v),
as.character(round(y.hat,2)), ",",
hat(sigma)^2, as.character(sigma.hat)) )
text( x=pt$x+2, y=pt$y,labels=lab )
## the text should be \hat{y} = <value of y.hat>, \hat{\sigma}^2 == <value
of sigma.hat>
and R
2003 Jun 20
3
combining mathematical notation and value substitution
Dear People,
I need to make a label which both contains math notation as well as
substitutes a value for an object. In the following label, len and theta
are one dim variables, and I am substituting their values appropriately.
This label looks fine except that I want the greek symbol for theta to
appear instead of the word `theta'. How can I do so most easily? I don't
understand the