.
-Original Message-
From: R-help On Behalf Of David Stevens
Sent: Wednesday, January 25, 2023 8:34 AM
To: Bert Gunter
Cc: r-help@r-project.org
Subject: Re: [R] Plotmath isn't working for special characters
External Email: This message originated from outside Empower Pharmacy. P
Gunter
Cc: r-help@r-project.org
Subject: Re: [R] Plotmath isn't working for special characters
External Email: This message originated from outside Empower Pharmacy. Please
exercise caution before opening attachments, clicking links, replying, or
providing information to the sender.
A
A more extensive test (no=produced an empty box on the plot, yes=produced the
intended plotmath result). It appears that plotmath is not producing the
special math characters. Greek symbols are produced. I'll try to reinstall R
and report back.
David
plot(1,1, main = parse(text = "x >= y")) -
Às 12:36 de 25/01/2023, Rui Barradas escreveu:
Às 21:53 de 24/01/2023, Spencer Graves escreveu:
On 1/24/23 3:33 PM, David Stevens wrote:
Simple expressions on plots, such as parse(text='x >= y') have been
resulting in just a placeholder box (x box y and not the symbol) in my R
plot labels in
Às 21:53 de 24/01/2023, Spencer Graves escreveu:
On 1/24/23 3:33 PM, David Stevens wrote:
Simple expressions on plots, such as parse(text='x >= y') have been
resulting in just a placeholder box (x box y and not the symbol) in my R
plot labels in windows, R v 4.2.2. I haven't down an exhaustive
On Tue, 24 Jan 2023 21:33:48 +
David Stevens wrote:
> Simple expressions on plots, such as parse(text='x >= y') have been
> resulting in just a placeholder box (x box y and not the symbol) in
> my R plot labels in windows, R v 4.2.2.
Here's a recently fixed bug that may be related:
https://
plot(1,1, main=quote(x>=y))
produces the symbol for me.
plot(1,1, main=parse(text="x>=y"))
also produces the symbol.
setting value
version R version 4.2.2 Patched (2022-11-10 r83330)
os Ubuntu 22.04.1 LTS
system x86_64, linux-gnu
ui X11
language en_NZ:en
collate en_NZ.iso88
Also works for me on a Mac Ventura in the RStudio graphics device. Just for
the heckuva it, does
plot(1,1,main= quote( x >= y ))
work? I shouldn't think so, but ...
Cheers,
Bert
On Tue, Jan 24, 2023 at 1:43 PM David Stevens wrote:
> Simple expressions on plots, such as parse(text='x >= y') ha
On 1/24/23 3:33 PM, David Stevens wrote:
Simple expressions on plots, such as parse(text='x >= y') have been
resulting in just a placeholder box (x box y and not the symbol) in my R
plot labels in windows, R v 4.2.2. I haven't down an exhaustive test but
<= and >= have this behavior.
plot(1,1
Simple expressions on plots, such as parse(text='x >= y') have been
resulting in just a placeholder box (x box y and not the symbol) in my R
plot labels in windows, R v 4.2.2. I haven't down an exhaustive test but
<= and >= have this behavior.
plot(1,1,main=parse(text="x >= y"))
Has anyone els
Try this:
plot(1)
tmp <- x >= 3 ~ "&" ~ y <= 3
mtext(tmp)
On Mon, Aug 20, 2018 at 5:00 PM MacQueen, Don via R-help
wrote:
>
> I would like to use plotmath to annotate a plot with an expression that
> includes a logical operator.
>
> ## works well
> tmp <- expression(x >= 3)
> plot(1)
> mtext(tmp
gt;
>> I've used this approach to set up a system that helps me to interactively
>> review various subsets of a large set of data. I save the final selected
>> subsetting expressions in some sort of data structure, for later use in
>> preparing a report using rmarkdown.
>
).
>
> -Don
>
> --
> Don MacQueen
> Lawrence Livermore National Laboratory
> 7000 East Ave., L-627
> Livermore, CA 94550
> 925-423-1062
> Lab cell 925-724-7509
>
>
>
> From: Bert Gunter
> Date: Monday, August 20, 2018 at 3:38 PM
> To: "MacQueen, D
Livermore, CA 94550
>
> 925-423-1062
>
> Lab cell 925-724-7509
>
>
>
>
>
>
>
> *From: *Bert Gunter
> *Date: *Monday, August 20, 2018 at 3:38 PM
> *To: *"MacQueen, Don"
> *Cc: *array R-help
> *Subject: *Re: [R] plotmath and logical o
CA 94550
925-423-1062
Lab cell 925-724-7509
From: Bert Gunter
Date: Monday, August 20, 2018 at 3:38 PM
To: "MacQueen, Don"
Cc: array R-help
Subject: Re: [R] plotmath and logical operators?
This is clumsy and probably subject to considerable improvement, but does it
work for you:
lef
This is clumsy and probably subject to considerable improvement, but does
it work for you:
left <- quote(x >= 3)
right <- quote(y <= 3) ## these can be anything
## the plot:
plot(1)
eval(substitute(mtext(expression(paste(left, " & ",right))), list(left =
left, right = right)))
## Expression eval
I would like to use plotmath to annotate a plot with an expression that
includes a logical operator.
## works well
tmp <- expression(x >= 3)
plot(1)
mtext(tmp)
## not so well
tmp <- expression(x >= 3 & y <= 3)
plot(1)
mtext(tmp)
Although the text that's displayed makes sense, it won't be obvi
> On Jan 1, 2016, at 6:10 PM, Fisher Dennis wrote:
>
> R 3.2
> OS X
>
> Colleagues,
>
> This should be very simple but the solution eludes me.
> I have a polymath label for a graphic:
> bquote(AUC[0-infinity]~(ng/ml~x~hours))
> I would like the “x” to be replaced with a bullet.
If by
R 3.2
OS X
Colleagues,
This should be very simple but the solution eludes me.
I have a polymath label for a graphic:
bquote(AUC[0-infinity]~(ng/ml~x~hours))
I would like the “x” to be replaced with a bullet.
Dennis
Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessTha
> >
> > Yes, that is what I thought so too earlier (and indeed is still true, sorry
> > about that). The whole issue started at my end because I misremembered
> > about plotmath which is neither a function nor a package.
> >
> >> Perhaps install.packages() should give a different error message wh
On 12/12/2015 1:35 PM, Ranjan Maitra wrote:
install.packages('grDevices')
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
Warning message:
package ‘grDevices’ is not available (for R version 3.2.2)
However, this is no longer an issue for me: I seem to have it installed
> On Dec 12, 2015, at 12:33 PM, Ranjan Maitra
> wrote:
>
>> A couple of things:
>>
>> First, there is a SIG list specifically for R on Fedora and RHEL
>> distributions and their derivatives:
>>
>> https://stat.ethz.ch/mailman/listinfo/r-sig-fedora
>>
>> Second, how did you install R? If yo
> A couple of things:
>
> First, there is a SIG list specifically for R on Fedora and RHEL
> distributions and their derivatives:
>
> https://stat.ethz.ch/mailman/listinfo/r-sig-fedora
>
> Second, how did you install R? If you used the precompiled binary RPMS for
> Fedora that are available
> On Dec 12, 2015, at 11:32 AM, Ranjan Maitra
> wrote:
>
> On Sat, 12 Dec 2015 10:51:16 -0600 Marc Schwartz wrote:
>
>>
>>> On Dec 12, 2015, at 10:47 AM, Ranjan Maitra
>>> wrote:
>>>
>>> Hi,
>>>
>>> I recently needed to install a fresh OS (Fedora 23, where R 3.2.2 is the
>>> latest), an
On 12/12/2015 12:32 PM, Ranjan Maitra wrote:
On Sat, 12 Dec 2015 10:51:16 -0600 Marc Schwartz wrote:
On Dec 12, 2015, at 10:47 AM, Ranjan Maitra
wrote:
Hi,
I recently needed to install a fresh OS (Fedora 23, where R 3.2.2 is the
latest), and which meant everything has to be installed fr
On Sat, 12 Dec 2015 10:51:16 -0600 Marc Schwartz wrote:
>
> > On Dec 12, 2015, at 10:47 AM, Ranjan Maitra
> > wrote:
> >
> > Hi,
> >
> > I recently needed to install a fresh OS (Fedora 23, where R 3.2.2 is the
> > latest), and which meant everything has to be installed from scratch. In so
> On Dec 12, 2015, at 10:47 AM, Ranjan Maitra
> wrote:
>
> Hi,
>
> I recently needed to install a fresh OS (Fedora 23, where R 3.2.2 is the
> latest), and which meant everything has to be installed from scratch. In so
> doing, I got the somewhat familiar:
>
>> install.packages('plotmath')
>
Hi,
I recently needed to install a fresh OS (Fedora 23, where R 3.2.2 is the
latest), and which meant everything has to be installed from scratch. In so
doing, I got the somewhat familiar:
>install.packages('plotmath')
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
War
Indeed! Thank you!
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
On 05/03/2013 12:05, Donatella Quagli wrote:
Dear all,
is it possible to print angle brackets (LaTeX notation: \langle, \rangle)? I
found that lceil and lfloor
are available, see demo(plotmath). But langle and rangle are not.
I tried to print utf8 characters directly as well without success.
Dear all,
is it possible to print angle brackets (LaTeX notation: \langle, \rangle)? I
found that lceil and lfloor
are available, see demo(plotmath). But langle and rangle are not.
I tried to print utf8 characters directly as well without success.
I have also read something about a tikzDevice p
he size of,
e.g., the symbols in a fraction compared to regular text.
Uwe Ligges
Rui Barradas
Em 13-05-2012 11:00, Bert Gunter escreveu:
Date: Sat, 12 May 2012 14:05:26 -0700
From: Bert Gunter
To:r-help@r-project.org
Subject: [R] Plotmath bug or my misunderstanding?
Message-ID:
Content-Ty
Peter/David:
Yes, I think this is the general approach for multiple lines in
plotmath expressions. For future reference, a simple canonical example
is:
exl <- list(quote(sigma), "tau",quote(beta))
plot(0:1,0:1,type="n",axes=FALSE)
text(do.call(expression,exl),x=.5,y=seq(.4,.6,by=.1),cex=2)
The p
Bert: inline
On 2012-05-13 7:43, Bert Gunter wrote:
Peter/David:
1. For some reason, I didn't see Peter's reply on r-help.
2. To Peter: Aha!!
Let me play this back to you. In
text(1,1,labels=expression(atop(atop(sigma,"some text"),"another
level")),cex = 2)
The (outer) whole atop() specifi
On May 13, 2012, at 10:43 AM, Bert Gunter wrote:
Peter/David:
1. For some reason, I didn't see Peter's reply on r-help.
2. To Peter: Aha!!
Let me play this back to you. In
text(1,1,labels=expression(atop(atop(sigma,"some text"),"another
level")),cex = 2)
The (outer) whole atop() specificati
Peter/David:
1. For some reason, I didn't see Peter's reply on r-help.
2. To Peter: Aha!!
Let me play this back to you. In
text(1,1,labels=expression(atop(atop(sigma,"some text"),"another
level")),cex = 2)
The (outer) whole atop() specification is allocated twice the amount
of space that would
1, labels=expression(atop(atop(atop(atop(sigma,"some text"),
"another level"), "third"), "4th")), cex = 2)
Anyway, I couldn't find this behavior in the help pages.
Rui Barradas
Em 13-05-2012 11:00, Bert Gunter escreveu:
Date: Sat, 12 May 2012
On 12-05-13 12:27 AM, David Winsemius wrote:
On May 12, 2012, at 6:27 PM, Peter Ehlers wrote:
Hi Bert,
I think the 'cex=' argument applies to the outermost 'atop()'.
It then applies that size specification to each of the two
components of the atop(a,b). If one of the components is itself
anot
On May 12, 2012, at 6:27 PM, Peter Ehlers wrote:
Hi Bert,
I think the 'cex=' argument applies to the outermost 'atop()'.
It then applies that size specification to each of the two
components of the atop(a,b). If one of the components is itself
another atop(a,b), then the individual parts are s
Hi Bert,
I think the 'cex=' argument applies to the outermost 'atop()'.
It then applies that size specification to each of the two
components of the atop(a,b). If one of the components is itself
another atop(a,b), then the individual parts are sized downward
to produce the required cex for the un
This is a followup to a recent post on using atop() to obtain
multiline expressions.
My reading of the plotmath docs makes it clear that issuing (in base
graphics) the specification
par(cex = 2)
doubles symbols and regular text in subsequent plotmath expressions.
However, it is unclear to me wha
On Jul 9, 2011, at 9:07 AM, Marius Hofert wrote:
Dear David,
thanks for the hint, I completely forgot about phantom(). With that,
I can solve the problem:
library(lattice)
xyplot(0~0, xlim=c(0,3), scales=list(x=list(at=c(1,1.1),
labels=c(expression(hat(t
On Thu, Jun 23, 2011 at 6:30 AM, Uwe Ligges
wrote:
> Folks,
>
> the relevant thing you have to remember is: All the stuff must be valid R
> syntax (with few additional functions as mention in the ?plotmath help
> file). Knowing that it is obvious where additional "operators" are required.
>
> Best
Folks,
the relevant thing you have to remember is: All the stuff must be valid
R syntax (with few additional functions as mention in the ?plotmath help
file). Knowing that it is obvious where additional "operators" are required.
Best,
Uwe Ligges
On 23.06.2011 02:56, Bryan Hanson wrote:
Tha
Dennis,
Thanks. That makes sense, but I don't think it's clearly documented.
The default assumption that I and at least some others in this
discussion made is that everything in the list of plotmath features in
the helpfile works the same way, since they're all in the same list.
And if for some o
Hi:
>From the plotmath help page:
x %->% y x right-arrow y
so this is behaving like a binary operator. There happen to be several
of these in plotmath
On Wed, Jun 22, 2011 at 5:49 PM, Sarah Goslee wrote:
> Interesting. I don't know the explanation, but look at this:
> # works
> plot(1:
Thanks to both David and Sarah. I'm glad I asked, as I had tried some
of the combos Sarah suggested and observed the same behavior, which
puzzled me. David, thanks for reminding me about ~ as that is a
different way to get a space into the string. I just don't use
plotmath often enough t
On Jun 22, 2011, at 8:10 PM, Bryan Hanson wrote:
Hello R Masters and the Rest of Us:
The first of these works fine, the 2nd is accepted but too literal
(the "%->%" is shown in the plot label and in the wrong position).
The 3rd throws and error due to "unexpected SPECIAL". Would someone
Interesting. I don't know the explanation, but look at this:
# works
plot(1:10, 1:10, xlab=expression(a %->% b))
# doesn't work
plot(1:10, 1:10, xlab=expression(%->%))
# works
plot(1:10, 1:10, xlab=expression(paste("something" %->% "else")))
# doesn't work
plot(1:10, 1:10, xlab=expression(paste("s
Hello R Masters and the Rest of Us:
The first of these works fine, the 2nd is accepted but too literal
(the "%->%" is shown in the plot label and in the wrong position).
The 3rd throws and error due to "unexpected SPECIAL". Would someone
recommend a way to format this? I want the two phr
On Jun 2, 2011, at 5:07 PM, Marius Hofert wrote:
Dear Dennis, Dear Uwe, Dear David,
many thanks for helping. Dennis and David, your solutions seemed
perfectly fine, but when I applied it to my original problem, it did
not show a title. Below is a (longer) minimal example (the first
part
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Marius Hofert
> Sent: Thursday, June 02, 2011 1:20 PM
> To: Uwe Ligges
> Cc: Help R
> Subject: Re: [R] plotmath: paste string and expression [from
>
Dear Dennis, Dear Uwe, Dear David,
many thanks for helping. Dennis and David, your solutions seemed perfectly
fine, but when I applied it to my original problem, it did not show a title.
Below is a (longer) minimal example (the first part is from the help page of
bbmle). Is this a bug in bbmle?
On Jun 2, 2011, at 4:19 PM, Marius Hofert wrote:
Dear Uwe,
thanks for your help. Actually, I first thought about writing your
solution in the email in order to make clear that it is not the
solution I'm looking for :-) My goal is to work with the vector
"vars" of expressions. The example
Hi:
This seems to work:
vars2 <- c(quote(alpha), quote(beta)) # returns a list of mode call
plot(0, 0, main = bquote(bold('Foo '~.(vars2[[2]]
Expressions are only evaluated once, which means that inner
expressions are not evaluated. You need a call object rather than an
expression inside o
Dear Uwe,
thanks for your help. Actually, I first thought about writing your solution in
the email in order to make clear that it is not the solution I'm looking for
:-) My goal is to work with the vector "vars" of expressions. The example is
only a minimal example and for that your solution is
On 02.06.2011 20:43, Marius Hofert wrote:
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(
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 j
Dear Peter,
perfect *as usual*, many thanks!
Cheers,
Marius
On 2011-02-26, at 17:55 , Peter Ehlers wrote:
> On 2011-02-25 15:57, Marius Hofert wrote:
>> Dear expeRts,
>>
>> I would like to use LaTeX-like symbols in keys via plotmath. Below is a
>> minimal
>> example. I get:
>> Error in fun(k
On 2011-02-25 15:57, Marius Hofert wrote:
Dear expeRts,
I would like to use LaTeX-like symbols in keys via plotmath. Below is a minimal
example. I get:
Error in fun(key = list(x = 0.5, y = 0.8, text =
list(list(expression(paste("(", :
first component of text must be vector of labels
What's
Dear expeRts,
I would like to use LaTeX-like symbols in keys via plotmath. Below is a minimal
example. I get:
Error in fun(key = list(x = 0.5, y = 0.8, text =
list(list(expression(paste("(", :
first component of text must be vector of labels
What's wrong? How can I create the required vector
On Oct 4, 2010, at 10:11 AM, Thomas Stewart wrote:
Try
expression(paste(integral(),"f(",tau,") d",tau,sep="")))
it works for me.
It does "work" (albeit without properly including the requested limits
of integrations), but if it is used as a teaching example, it will
obscure the syntax o
Try
expression(paste(integral(),"f(",tau,") d",tau,sep="")))
it works for me.
-tgs
On Mon, Oct 4, 2010 at 9:25 AM, Czerminski, Ryszard <
ryszard.czermin...@astrazeneca.com> wrote:
> I would like to use greek "tau" as a symbol of variable to integrate
> over in plotmath
>
> expression(integral(
On Oct 4, 2010, at 15:25 , Czerminski, Ryszard wrote:
> I would like to use greek "tau" as a symbol of variable to integrate
> over in plotmath
>
> expression(integral(f(tau)*dtau, 0,t))
>
> but nothing seems to work. I tried d{\tau}, d\tau, etc.,
> without any success
>
> Is it possible? How
I would like to use greek "tau" as a symbol of variable to integrate
over in plotmath
expression(integral(f(tau)*dtau, 0,t))
but nothing seems to work. I tried d{\tau}, d\tau, etc.,
without any success
Is it possible? How can I accomplish this?
Best regards,
Ryszard
--
David, yes, I now see how it worked.
Thanks again,
John
- Original Message
From: David Winsemius
To: array chip
Cc: baptiste auguie ; r-h...@stat.math.ethz.ch
Sent: Thu, August 19, 2010 12:12:46 PM
Subject: Re: [R] plotmath question
On Aug 19, 2010, at 2:46 PM, array chip wrote
On Aug 19, 2010, at 2:46 PM, array chip wrote:
Thanks David!
I see that I didn't produce the "correct" answer, but perhaps I'm
being thanked for something that was generalizable in that direction.
Better would have ben one of these:
plot(1, ylab= bquote(italic(P) *.(b)*","*~A) )
plo
Thanks David!
John
- Original Message
From: David Winsemius
To: array chip
Cc: baptiste auguie ; r-h...@stat.math.ethz.ch
Sent: Thu, August 19, 2010 11:34:07 AM
Subject: Re: [R] plotmath question
On Aug 19, 2010, at 2:24 PM, array chip wrote:
> Thanks, yes it worked!
>
baptiste auguie
To: array chip
Cc: r-h...@stat.math.ethz.ch
Sent: Thu, August 19, 2010 11:08:10 AM
Subject: Re: [R] plotmath question
Try this,
b = 20
plot(1, ylab= bquote(italic(P) * .(b)) )
HTH,
baptiste
On 19 August 2010 20:02, array chip wrote:
Hi all, let me give a simple example:
b
Thanks, yes it worked!
What about if I want to print as "P2, A" where A is just letter A and 2 is from
variable b.
John
- Original Message
From: baptiste auguie
To: array chip
Cc: r-h...@stat.math.ethz.ch
Sent: Thu, August 19, 2010 11:08:10 AM
Subject: Re: [R] plotmat
On Aug 19, 2010, at 2:02 PM, array chip wrote:
Hi all, let me give a simple example:
b<-20
I would like to print ylab as "P20" where "P" is printed in Italic
font. When I
do the following:
plot(1, ylab=expression(paste(italic("P"),b,sep="")))
I got y axis label printed as "Pb" instead of
Try this,
b = 20
plot(1, ylab= bquote(italic(P) * .(b)) )
HTH,
baptiste
On 19 August 2010 20:02, array chip wrote:
> Hi all, let me give a simple example:
>
> b<-20
> I would like to print ylab as "P20" where "P" is printed in Italic font. When
> I
> do the following:
>
> plot(1, ylab=expre
Hi all, let me give a simple example:
b<-20
I would like to print ylab as "P20" where "P" is printed in Italic font. When I
do the following:
plot(1, ylab=expression(paste(italic("P"),b,sep="")))
I got y axis label printed as "Pb" instead of "P20". What is the best solution
to print platmath s
On 07/07/10 18:52, Paul Johnson wrote:
> [...]
> 1:
> axis(1, line=6, at=mu+dividers*sigma,
> labels=as.expression(c(b1,b2,b3,b4,b5), padj=-1))
>
>
> 2:
> axis(1, line=9, at=mu+dividers*sigma,
> labels=c(as.expression(b1),b2,b3,b4,b5), padj=-1)
>
> This second one shouldn't work, I think.
On Wed, Jul 7, 2010 at 5:41 AM, Duncan Murdoch wrote:
>>>
>>> You want "as.expression(b1)", not "expression(b1)". The latter means
>>> "the
>>> expression consisting of the symbol b1". The former means "take the
>>> object
>>> stored in b1, and convert it to an expression.".
>>>
Thanks to
On 07/07/2010 1:03 AM, Paul Johnson wrote:
On Tue, Jul 6, 2010 at 12:41 PM, Duncan Murdoch
wrote:
On 06/07/2010 10:54 AM, Paul Johnson wrote:
Here's another example of my plotmath whipping boy, the Normal
distribution.
You want "as.expression(b1)", not "expression(b1)". The l
Ooops, I didn't convert this one to text right for the list.
b1<- substitute( mu - d*sigma, list(d=*-round(dividers[1],2))* )
should be
b1<- substitute( mu - d*sigma, list(d=-round(dividers[1],2)) )
and similarly for
labels=*as.expression(c(b1,b2,b3,b4,b5))*, padj=-1)
read
label
On 07/07/10 06:03, Paul Johnson wrote:
> [...]
> Hi, Duncan and David
>
> Thanks for looking. I suspect from the comment you did not run the
> code. The expression examples I give do work fine already. But I
> have to explicitly put in values like 1.96 to make them work. I'm
> trying to avid
On Tue, Jul 6, 2010 at 12:41 PM, Duncan Murdoch
wrote:
> On 06/07/2010 10:54 AM, Paul Johnson wrote:
>>
>> Here's another example of my plotmath whipping boy, the Normal
>> distribution.
>>
> You want "as.expression(b1)", not "expression(b1)". The latter means "the
> expression consisting of the
On Tue, 6 Jul 2010, David Winsemius wrote:
On Jul 6, 2010, at 1:41 PM, Duncan Murdoch wrote:
On 06/07/2010 10:54 AM, Paul Johnson wrote:
> Here's another example of my plotmath whipping boy, the Normal
> distribution.
>
> A colleague asks for a Normal plotted above a series of axes that
>
On 06/07/10 18:51, David Winsemius wrote:
Easily addressed in this case with "~" instead of "-". The value of
"d" provides the minus:
b1 <- substitute( mu ~ d*sigma, list(d=round(dividers[1],2)) )
Neat trick! But it gives a slightly different minus sign in the
display, so perhaps simply
On Jul 6, 2010, at 1:41 PM, Duncan Murdoch wrote:
On 06/07/2010 10:54 AM, Paul Johnson wrote:
Here's another example of my plotmath whipping boy, the Normal
distribution.
A colleague asks for a Normal plotted above a series of axes that
represent various other distributions (T, etc).
I wan
On 06/07/2010 10:54 AM, Paul Johnson wrote:
Here's another example of my plotmath whipping boy, the Normal distribution.
A colleague asks for a Normal plotted above a series of axes that
represent various other distributions (T, etc).
I want to use vectors of equations in plotmath to do this, b
Here's another example of my plotmath whipping boy, the Normal distribution.
A colleague asks for a Normal plotted above a series of axes that
represent various other distributions (T, etc).
I want to use vectors of equations in plotmath to do this, but have
run into trouble. Now I've isolated t
On 29.01.2010 13:03, Rubén Roa wrote:
ComRades,
How do you put a superscript on a scalable delimiter?
I want to put 'b' as the power of the expression in the following plot:
t<- 1:25
K<- 0.2
y<- ((1-exp(-K*t))/(1-exp(-K*t)*exp(K)))^3
plot(t,y,"l",main="K=0.2, b=3")
text(15,5,expression(bgrou
ComRades,
How do you put a superscript on a scalable delimiter?
I want to put 'b' as the power of the expression in the following plot:
t <- 1:25
K <- 0.2
y <- ((1-exp(-K*t))/(1-exp(-K*t)*exp(K)))^3
plot(t,y,"l",main="K=0.2, b=3")
text(15,5,expression(bgroup("(",frac(1-e^-Kt,1-e^-Kt*e^K),")")))
baptiste auguie wrote:
plot(0, xlab=bquote(theta *" = "* .(x)))
or probably easier use == as in
plot(0, xlab=bquote(theta == .(x)))
Uwe Ligges
?substitute
?bquote
HTH,
baptiste
2009/9/21 Jarrod Hadfield :
Hi,
I want to have a legend that is a mixture of numbers and symbols, and have
plot(0, xlab=bquote(theta *" = "* .(x)))
?substitute
?bquote
HTH,
baptiste
2009/9/21 Jarrod Hadfield :
> Hi,
>
> I want to have a legend that is a mixture of numbers and symbols, and have
> found no way of achieving this.
>
> For example, if I want theta="x" or theta=2 this is easily achieved.
Hi,
I want to have a legend that is a mixture of numbers and symbols, and
have found no way of achieving this.
For example, if I want theta="x" or theta=2 this is easily achieved.
plot(0, xlab=expression(paste(theta, "= x")))
plot(0, xlab=expression(paste(theta, "= 2")))
However, if x is so
Hi Gavin
I am running on windows and have no problem
R version 2.9.2 (2009-08-24)
i386-pc-mingw32
locale:
LC_COLLATE=English_Australia.1252;LC_CTYPE=English_Australia.1252;LC_MONETARY=English_Australia.1252;LC_NUMERIC=C;LC_TIME=English_Australia.1252
attached base packages:
[1] datasets utils
Dear List,
I have hit this problem with using a plotmath expression in an axis
label on a lattice plot I'm including in a Sweave document. The actual
document is far too long and boring (unless you are interested in the
hydrochemistry of upland lakes) to include here, but the following
minimal exa
on 01/27/2009 03:47 PM David Hewitt wrote:
> I'm trying to combine multi-line text and math annotations on a plot
> and am not having much luck. I looked at various suggestions in the
> archives, but I cannot coerce any of them to do what I want. I'm
> beginning (finally?!) to think that there is a
I'm trying to combine multi-line text and math annotations on a plot
and am not having much luck. I looked at various suggestions in the
archives, but I cannot coerce any of them to do what I want. I'm
beginning (finally?!) to think that there is an entirely better
approach than the one I have trie
On Wed, Dec 31, 2008 at 10:47 AM, Mike Prager wrote:
> I hope to use the plotmath facility to print titles that mix
> math and values of R variables.
>
> The help for "plotmath" has an example, which after repeated
> reading, I find baffling. Likewise, I have read the help file
> for "substitute"
Sorry, apparently I can't type. Gabor's example and my test case
should be identical, and weren't in my original email (now fixed).
Sarah
On Wed, Dec 31, 2008 at 1:42 PM, Sarah Goslee wrote:
> Hi all,
>
> I hadn't used bquote before, so I gave this a try, only to encounter some odd
> behavior.
>
Hi all,
I hadn't used bquote before, so I gave this a try, only to encounter some odd
behavior.
R 2.8.0 on Fedora Core 8 (no RPM for 2.8.1 yet)
"vanilla" session with no packages loaded (same behavior with my usual
set of packages).
On Wed, Dec 31, 2008 at 12:30 PM, Gabor Grothendieck
wrote:
>
"Charles C. Berry" wrote:
> On Wed, 31 Dec 2008, Mike Prager wrote:
>
> > I hope to use the plotmath facility to print titles that mix
> > math and values of R variables.
[...]
>
>plot(1:3, 1:3, main = bquote(a == .(aa)))
>
>
> You have to follow a couple of 'See Also' links from the
On Wed, 31 Dec 2008, Mike Prager wrote:
I hope to use the plotmath facility to print titles that mix
math and values of R variables.
The help for "plotmath" has an example, which after repeated
reading, I find baffling. Likewise, I have read the help file
for "substitute" (wqhich seems to be ne
Try:
aa <- 22
plot(1, main = bquote(a == .(aa)))
On Wed, Dec 31, 2008 at 11:47 AM, Mike Prager wrote:
> I hope to use the plotmath facility to print titles that mix
> math and values of R variables.
>
> The help for "plotmath" has an example, which after repeated
> reading, I find baffling. Lik
I hope to use the plotmath facility to print titles that mix
math and values of R variables.
The help for "plotmath" has an example, which after repeated
reading, I find baffling. Likewise, I have read the help file
for "substitute" (wqhich seems to be needed) without ever
understanding what it do
1 - 100 of 119 matches
Mail list logo