oo.
>
> See in line
>
> From: Rosa Oliveira [mailto:rosit...@gmail.com]
> Sent: Tuesday, August 1, 2017 4:38 PM
> To: PIKAL Petr <petr.pi...@precheza.cz>
> Subject: Re: [R] Superscript and subscrib R for legend x-axis and y-axis and
> colour different subjects i
Hi
Keep your messages coppied to R helplist, others could give you answers too.
See in line
From: Rosa Oliveira [mailto:rosit...@gmail.com]
Sent: Tuesday, August 1, 2017 4:38 PM
To: PIKAL Petr <petr.pi...@precheza.cz>
Subject: Re: [R] Superscript and subscrib R for legend x-axis and
Hi
From: Rosa Oliveira [mailto:rosit...@gmail.com]
Sent: Monday, July 31, 2017 11:47 AM
To: Martin Maechler <maech...@stat.math.ethz.ch>
Cc: PIKAL Petr <petr.pi...@precheza.cz>; r-help mailing list
<r-help@r-project.org>
Subject: Re: [R] Superscript and subscrib R for legend
9:11:18 + writes:
>
>> Hi Martin see in line
>
>>> -Original Message- From: Martin Maechler
>>> [mailto:maech...@stat.math.ethz.ch] Sent: Monday, July
>>> 31, 2017 10:52 AM To: PIKAL Petr <petr.pi...@precheza.cz>
>>> Cc: Rosa Olivei
ly
>> 31, 2017 10:52 AM To: PIKAL Petr <petr.pi...@precheza.cz>
>> Cc: Rosa Oliveira <rosit...@gmail.com>; r-help mailing
>> list <r-help@r-
project.org>
>> Subject: Re: [R] Superscript and subscrib R for legend
>>
-
> project.org>
> Subject: Re: [R] Superscript and subscrib R for legend x-axis and y-axis and
> colour different subjects in longitudinal data with different colours
>
>
> > Hi Rosa
> > something like
>
> > plot(1,1, sub=expression(lambda^"2"))
>
> Hi Rosa
> something like
> plot(1,1, sub=expression(lambda^"2"))
> So with your example, do you want something like
> plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
> xlab="Day in ICU",
> ylab="CRP (mg/dL)",
> sub = mtext(expression(lambda^2)))
OOps!
Hi Rosa
something like
plot(1,1, sub=expression(lambda^"2"))
So with your example, do you want something like
plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
xlab="Day in ICU",
ylab="CRP (mg/dL)",
sub = mtext(expression(lambda^2)))
CRP7graph <-
1. Why all the library calls to ggplot and lattice if you are using
only basic graphics?
2. Note that:
sub = mtext(expression(paste(lambda)))
is not the same as your
sub = "lambda = 0.7"
Not sure why you think it is.
In any case, you need to learn about R's "plotmath" capabilities for
7 12:58 PM
To: Jake William Andrae
Subject: Re: [R] Superscript in graph text
your example is not reproducible because I don't have your dataset.
Please re-read the notes
at the bottom of every R-help email
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
a
x <- 10
plot(1:10, main=bquote(R^2 * "=" * .(x)))
On Wed, Jan 18, 2017 at 8:00 PM, Richard M. Heiberger wrote:
> ?plotmath
>
>
> plot(1:10, main=expression(R^2))
>
> plot(1:10, main=bquote(R^2 * "=" * .(x)))
>
> On Wed, Jan 18, 2017 at 7:44 PM, Jake William Andrae
>
?plotmath
plot(1:10, main=expression(R^2))
plot(1:10, main=bquote(R^2 * "=" * .(x)))
On Wed, Jan 18, 2017 at 7:44 PM, Jake William Andrae
wrote:
> Hello,
>
>
> I've added some statistical information as text to some graphs, but I'm
> having a really hard time
?plotmath
Yes, you will have to put in some effort if you want to use these
sorts of latex-like math expressions as labels in your graphs.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley
Cheers Guys it worked!
--
View this message in context:
http://r.789695.n4.nabble.com/Superscript-in-legend-without-using-expression-function-tp4702929p4703036.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org
On Sat, Feb 7, 2015 at 4:57 PM, jgui001 j.guilb...@auckland.ac.nz wrote:
I am plotting three sets of data on a single graph, and doing around 100+
graphs.
I can use the expression function to superscript the 2 but that seems to
force me to manually put in the R squared values. Is there away
On 08/02/15 10:57, jgui001 wrote:
I am plotting three sets of data on a single graph, and doing around 100+
graphs.
I can use the expression function to superscript the 2 but that seems to
force me to manually put in the R squared values. Is there away around this?
This code will show what it
On Feb 7, 2015, at 2:54 PM, Rolf Turner wrote:
On 08/02/15 10:57, jgui001 wrote:
I am plotting three sets of data on a single graph, and doing around 100+
graphs.
I can use the expression function to superscript the 2 but that seems to
force me to manually put in the R squared values. Is
I have not had the chance to implement this yet, but thanks to you both for
your help. This r-help should be complimented on how helpful it is. Its
really topnotch.
Thanks
On Thu, Apr 4, 2013 at 11:11 PM, Paul Johnson pauljoh...@gmail.com wrote:
On Thu, Apr 4, 2013 at 4:39 AM, Shane Carey
Hi William,
Thanks for this piece of code, it does the trick perfectly, what does this
piece of the code do: ~(.(\\1))
in the following section:
bquoteExpr - parse(text=gsub(pattern,
~(.(\\1)),
name))[[1]]
Thanks again
On Wed,
Hi William,
Im trying to run this function within a for loop as follows:
f - function (name)
{
# add other suffices and their corresponding plotmath expressions to the
list
env - list2env(list(mgkg = bquote(mg ~ kg^{-1}),
ugkg = bquote(mu * g ~ kg^{-1})),
: Shane Carey careys...@gmail.com
To: William Dunlap wdun...@tibco.com
Cc: r-help@r-project.org r-help@r-project.org
Sent: Thursday, April 4, 2013 5:39 AM
Subject: Re: [R] Superscript
Hi William,
Im trying to run this function within a for loop as follows:
f - function (name)
{
# add other suffices
4, 2013 5:39 AM
Subject: Re: [R] Superscript
Hi William,
Im trying to run this function within a for loop as follows:
f - function (name)
{
# add other suffices and their corresponding plotmath expressions to the
list
env - list2env(list(mgkg = bquote(mg ~ kg^{-1
...@gmail.com]
Sent: Thursday, April 04, 2013 1:55 AM
To: William Dunlap
Cc: r-help@r-project.org
Subject: Re: [R] Superscript
Hi William,
Thanks for this piece of code, it does the trick perfectly, what does this
piece of the code do: ~(.(\\1)file:///\\1))
in the following section:
bquoteExpr
Spotfire, TIBCO Software
wdunlap tibco.com
From: Shane Carey [mailto:careys...@gmail.com]
Sent: Thursday, April 04, 2013 2:40 AM
To: William Dunlap
Cc: r-help@r-project.org
Subject: Re: [R] Superscript
Hi William,
Im trying to run this function within a for loop as follows:
f - function (name
On Thu, Apr 4, 2013 at 4:39 AM, Shane Carey careys...@gmail.com wrote:
Hi William,
for (i in one:length(DATA_names))
if ((grepl(_,DATA_names[i]))==TRUE)
DATA_names[i]-f(DATA_names[i]))
I keep getting an error saying: incompatible types (from symbol to
character) in subassignment
On 03/04/2013 11:01 AM, Shane Carey wrote:
Hi,
How do I write a superscript within gsub?
I have the following: gsub(_mgkg,expression(paste(mg kg^{-1})),names[1])
gsub() doesn't work with expressions, it works with character strings.
You're going to need to split your string into parts
Ok thanks
On Wed, Apr 3, 2013 at 4:15 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote:
On 03/04/2013 11:01 AM, Shane Carey wrote:
Hi,
How do I write a superscript within gsub?
I have the following: gsub(_mgkg,expression(paste(**mg
kg^{-1})),names[1])
gsub() doesn't work with
gsub searches strings, not expressions.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Are you trying to convert a column name like Na_mgkg to a plot label like Na
(mg kg^-1) ?
If so you will have to use both string manipulation functions like gsub() and
expression manipulating
functions like bquote(). E.g.,
f - function (name)
{
# add other suffices and their corresponding
On Apr 3, 2013, at 9:06 AM, Shane Carey wrote:
Hi,
If I have data as follows:
DATA_names-c(
A mg kg
B mg kg
C mg kg
D mg kg
E mg kg
F mg kg
G mg kg
H mg kg
How do I convert to:
-1
A (mg kg )
-1
B (mg kg )
-1
C (mg kg )
Yup, I want these as labels on plots, but I need it as: D (mg kg^-1) rather
than D (mg kg)^-1.
Sorry for not being more clear and thanks for your help.
Cheers
On Wed, Apr 3, 2013 at 6:44 PM, David Winsemius dwinsem...@comcast.netwrote:
On Apr 3, 2013, at 9:06 AM, Shane Carey wrote:
Hi,
Hi William,
This is exactly what Im trying to do. Your a star,
Thanks
On Wed, Apr 3, 2013 at 5:33 PM, William Dunlap wdun...@tibco.com wrote:
Are you trying to convert a column name like Na_mgkg to a plot label
like Na (mg kg^-1) ?
If so you will have to use both string manipulation
Thanks to Dennis, Thomas and Rui - I was missing the ~.
Many thanks,
Ben Gillespie
Research Postgraduate
From: Dennis Murphy [djmu...@gmail.com]
Sent: 18 March 2013 20:47
To: Benjamin Gillespie
Subject: Re: [R] Superscript followed by number
On Tue, Mar 19, 2013 at 9:29 AM, Benjamin Gillespie gy...@leeds.ac.ukwrote:
Hi all,
I'm having problems finding the correct format for a command.
I would like to write some text on a plot.
I'm using the following command:
text(x,y,text here, srt=90)
I would like the text to read:
Hello,
Something like this?
plot(1, type = n)
text(1,1, expression(capacity ~ 10^3 ~ m^3))
Hope this helps,
Rui Barradas
Em 18-03-2013 20:29, Benjamin Gillespie escreveu:
Hi all,
I'm having problems finding the correct format for a command.
I would like to write some text on a plot.
I'm
Dos this do what you want?
plot(1:10, xlab=expression(delta*{}^18*O * VSMOW [â°]))
The specific is to put an empty item there to hold the superscript.
On Wed, May 4, 2011 at 9:37 AM, Janhal janine.hal...@unil.ch wrote:
Salut,
I have been struggling to superscript the 18 before the O
On May 4, 2011, at 7:28 AM, Richard M. Heiberger wrote:
Dos this do what you want?
plot(1:10, xlab=expression(delta*{}^18*O * VSMOW [‰]))
The specific is to put an empty item there to hold the superscript.
I do not think that is necessary:
plot(1:10, xlab=expression(delta^18*O~VSMOW[‰]))
David,
That is not clear from the original request. The request was for {}^18*O
It wasn't for delta^18
Therefore I put the space there to be sure that the 18 was seen as
pre-superscript of O,
not as a post-superscript of delta. I probably should also have used ~ as
plot(1:10,
On May 4, 2011, at 8:43 AM, Richard M. Heiberger wrote:
David,
That is not clear from the original request. The request was for
{}^18*O
I see your point. The use of the phantom would also allow a pre-
superscript with no preceding delta. Thanks for bearing with my
obtuseness.
--
Yes thats it :-)
Thank you very much!
Janine
--
View this message in context:
http://r.789695.n4.nabble.com/Superscript-number-before-letter-tp3495577p3495812.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org
Would the following work?
legend(210, 110, bquote(r2 ==
.(format(summary(regression)$adj.r.squared,digits=3
See ?plotmath and ?bquote
Jeremy
Jeremy Hetzel
Boston University
--
View this message in context:
http://r.789695.n4.nabble.com/superscript-tp3252881p3252921.html
Sent from the R
Correction, I forgot the caret:
legend(210, 110, bquote(r^2 ==
.(format(summary(regression)$adj.r.squared,digits=3
--
View this message in context:
http://r.789695.n4.nabble.com/superscript-tp3252881p3252924.html
Sent from the R help mailing list archive at Nabble.com.
Thanks, jthetzel. That works. Can you plot a legend with 2 lines using
bquote? e.g.
r^2 = x
rmse = y
, and \n don't seem to work.
--
View this message in context:
http://r.789695.n4.nabble.com/superscript-tp3252881p3253088.html
Sent from the R help mailing list archive at Nabble.com.
This works:
as.expression(c(bquote(...),bquote(...)))
--
View this message in context:
http://r.789695.n4.nabble.com/superscript-tp3252881p3253145.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
On Fri, 2010-10-22 at 15:39 +0200, Claudia Beleites wrote:
On 10/22/2010 03:15 PM, DrCJones wrote:
snip /
Being a chemist, it seemed natural to me to put the i after the concentration
brackets into a subscript - though you didn't say you want that.
A more correct expression would be:
On Oct 26, 2010, at 11:15 AM, Gavin Simpson wrote:
On Fri, 2010-10-22 at 15:39 +0200, Claudia Beleites wrote:
On 10/22/2010 03:15 PM, DrCJones wrote:
snip /
Being a chemist, it seemed natural to me to put the i after the
concentration
brackets into a subscript - though you didn't say
On Oct 22, 2010, at 7:01 AM, DrCJones wrote:
Hi,
How can I get the '2+' into superscript in the following title:
'[Ca2+]i onsets'
I tried the command below, but it doesn't work. What am I missing?
The first is an unambiguous description of what you want, but here are
some guesses (since
Hi:
Try
X - rnorm(100)
hist(X, main = bquote('[Ca'^'2+'*']i'~'onsets'), xlab = 'sec')
or
hist(X, main = bquote('[Ca*]'*i^'2+' ~'onsets'), xlab = 'sec')
I'm not sure which one you want, though.
HTH,
Dennis
On Fri, Oct 22, 2010 at 4:01 AM, DrCJones matthias.godd...@gmail.comwrote:
Hi,
How
Hi,
Thanks for all of your replies!
David, a slightly modified version of what you gave did the trick:
hist(X,main = expression([*Ca**^paste(2,+)*]i~'onsets'))
But I prefer the way '2+' is italicized in the solution Dennis gave:
hist(X, main = bquote('[Ca'^'2+'*']i'~'onsets'), xlab =
On Oct 22, 2010, at 9:15 AM, DrCJones wrote:
Hi,
Thanks for all of your replies!
David, a slightly modified version of what you gave did the trick:
hist(X,main = expression([*Ca**^paste(2,+)*]i~'onsets'))
But I prefer the way '2+' is italicized in the solution Dennis gave:
I agree.
On 10/22/2010 03:15 PM, DrCJones wrote:
Hi, Thanks for all of your replies!
David, a slightly modified version of what you gave did the trick:
hist(X,main = expression([*Ca**^paste(2,+)*]i~'onsets'))
here you put the 2+ into the superscript of a superscript.
compare these four:
hist(X,main
Er, I don't see any italics in the output or implied by the expression.
Freudian slip...
...font superscripting is what I meant
All is perfectly clear now. Thanks again!
--
View this message in context:
Hi Kay,
Try
plot(1:10)
legend('topleft', expression(4^th*-root transformation))
HTH,
Jorge
On Tue, May 4, 2010 at 7:33 AM, Kay Cichini wrote:
hello,
i need to add legend text: 4th-root transformation, with the th
superscripted -
tried much - but nothing worked..
thanks for any
Kay Cichini wrote:
hello,
i need to add legend text: 4th-root transformation, with the th
superscripted -
tried much - but nothing worked..
This puts it in the title for the plot:
plot(1, main=expression(paste(4^th, root transformation)))
This puts it in a legend:
legend(topleft, pch=1,
thanks a lot!
-
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of Innsbruck
--
View this message in context:
http://r.789695.n4.nabble.com/superscript-tp2125341p2125384.html
Sent from the R help mailing list archive at
thanks a lot!
-
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of Innsbruck
--
View this message in context:
http://r.789695.n4.nabble.com/superscript-tp2125341p2125386.html
Sent from the R help mailing list archive at
Jacob Kasper wrote:
I know that this has been revisited over and over, yet I cannot figure out
how to solve this case of superscript troubles...
I would like the 2 in r2 to be superscript, yet I am pasting text before and
after it. I have tried several variations but have not solved this yet,
Hi,
Try this,
x = rnorm(1)
y = rnorm(1)
leg = bquote(r^2*=*.(round(x,digits=3))*, P=*.(round(y, digits=3)))
plot.new()
legend (bty =n,topright,legend=leg)
HTH,
baptiste
2009/11/2 Jacob Kasper jacobkas...@gmail.com:
I know that this has been revisited over and over, yet I cannot figure out
Try
ylab=expression(Temperature*degree*C))
type demo(mathplot) at R prompt for more customizations.
Walmes Zeviani
Lavras - MG, Brasil.
Lathouri, Maria wrote:
Dear all
I am doing some plots in R.
I want to have as label in y-axis Temperature (oC). I have used
Lathouri, Maria m.lathour...@imperial.ac.uk 10/28/09 6:02 PM
I want to have as label in y-axis Temperature (oC).
First, look at ?plotmath and find the 'degree' symbol...
Then look at the symbol for spacing.
Then try
ylab=expression(Temperature~degree*C)
S Ellison wrote:
Lathouri, Maria m.lathour...@imperial.ac.uk 10/28/09 6:02 PM
I want to have as label in y-axis Temperature (oC).
First, look at ?plotmath and find the 'degree' symbol...
Then look at the symbol for spacing.
Then try
ylab=expression(Temperature~degree*C)
and then perhaps
On Tue, Jun 16, 2009 at 10:01:00AM +, Steve Murray wrote:
I've been trying to superscript the '2' in the following command (I
don't want the '^' displayed), but as yet haven't had much luck.
I've tried both the paste and expression commands, but neither have
brought me any joy!
For the sake of brevity, I like to use this trick,
plot(0, 0)
mtext(~Monthly Precipitation (mm x *10^2*/month))
HTH,
baptiste
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
David and Danel,
Indeed, the missing symbol is *. Now it works, although, with a change of
font in the brackets of the axis=label.
Thanks,
david
To: daviddou...@hotmail.com
Subject: Re: [R] superscript
From: davidcr...@charter.net
Date: Sat, 14 Feb 2009 17:49:11 -0600
Could
Try:
plot(1,1,xlab=ligth intensity (PAR),ylab=expression(mass Pteridium
rhizomes (gr/0.25*m^2)))
Daniel Moreira, MD
Research Associate
Duke University Medical Center
DUMC 2626, MSRB-I Room 455
571 Research Drive
Durham, North Carolina 27710
Telephone:
Dear Benoit,
Perhaps
plot(1:10,xlab=expression(Ce (mmol/m^3)))
See also ?plotmath for more information.
HTH,
Jorge
On Tue, Sep 23, 2008 at 12:57 PM, Benoit Boulinguiez
[EMAIL PROTECTED] wrote:
Hi all,
I'd like to use superscript or subscript in the axis label of a graph. Is
that
Try this:
plot(1:10, main = expression(Emission~of~CO[2]~with~time))
On Wed, Jun 4, 2008 at 5:31 PM, Tariq Perwez [EMAIL PROTECTED] wrote:
I have been trying to figure out how to get superscript/subscript in the
main title for a plot. I have tried various approaches and suggestions but
none
Hi Tariq,
try:
plot(x,y,main=expression(Emission of CO[2]* with time))
Cheers,
Christoph
Wednesday, June 4, 2008, 10:31:08 PM, you wrote:
I have been trying to figure out how to get superscript/subscript in the
main title for a plot. I have tried various approaches and suggestions but
68 matches
Mail list logo