I am trying to produce two plots, one of x vs x^2 and the other x-mean(x) vs.
(x-mean(x))^2 using base R functions. All works well EXCEPT for the superscript
of the y axis of the second plot. Half of the superscript 2 in (x-mean(x))^2 is
cut off. My code follows. Any suggestions for modificat
> From: Rosa Oliveira [mailto:rosit...@gmail.com]
> Sent: Tuesday, August 1, 2017 4:38 PM
> To: PIKAL Petr
> 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 Pik
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
Subject: Re: [R] Superscript and subscrib R for legend x-axis and y-axis and
colour different
Hi
From: Rosa Oliveira [mailto:rosit...@gmail.com]
Sent: Monday, July 31, 2017 11:47 AM
To: Martin Maechler
Cc: PIKAL Petr ; r-help mailing list
Subject: Re: [R] Superscript and subscrib R for legend x-axis and y-axis and
colour different subjects in longitudinal data with different colours
>>> -Original Message- From: Martin Maechler
>>> [mailto:maech...@stat.math.ethz.ch] Sent: Monday, July
>>> 31, 2017 10:52 AM To: PIKAL Petr
>>> Cc: Rosa Oliveira ; r-help mailing
>>> list project.org>
>>> Subject: Re: [R] Su
M To: PIKAL Petr
>> Cc: Rosa Oliveira ; r-help mailing
>> list
>> Subject: Re: [R] Superscript and subscrib R for legend
>> x-axis and y-axis and colour different subjects in
>> longitudinal data with different colours
>>
&g
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
> Cc: Rosa Oliveira ; r-help mailing list project.org>
> Subject: Re: [R] Superscript and subscrib R fo
lp [mailto:r-help-boun...@r-project.org] On Behalf Of Rosa
> > Oliveira
> > Sent: Friday, July 28, 2017 5:07 PM
> > To: r-help mailing list ; R-help@r-project.org
> > Subject: [R] Superscript and subscrib R for legend x-axis and y-axis and
> > colour
> > dif
on(lambda^2)))
CRP7graph <- apply(CRP7, 1, lines, col="gray")
Cheers
Petr
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rosa Oliveira
> Sent: Friday, July 28, 2017 5:07 PM
> To: r-help mailing list ; R-help@r-project.org
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
constru
I am trying to make a x-axis and y-axis titles with both a special character
and a subscript. I am not being able to do this. I think its just a placing of
my parenthesis, but I've tried (seemingly) everything.
Even more, when I try the blog users code it works.
Is it because I’m using longi
: 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
and provide comme
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
> wrote:
>> Hello,
>>
>>
>> I'v
?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 making the 2 in the R2 label supe
?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 Breathe
Hello,
I've added some statistical information as text to some graphs, but I'm having
a really hard time making the 2 in the R2 label superscript. Does anyone have
any suggestions?
mtext(paste("R2 = ", R2), adj=0, line=1, col="black", cex=0.7)
Kind regards
Jake Andrae
PhD Candidate
Geolog
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 mai
On Sat, Feb 7, 2015 at 4:57 PM, 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 co
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 value
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 sh
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 should look like this but with the 2
ons like bquote(). E.g.,
>> >
>> > f <- function (name)
>> > {
>> ># add other suffices and their corresponding plotmath expressions to
>> > the list
>> >env <- list2env(list(mgkg = bquote(mg ~ kg^{-1}),
>> >
ot;, paste(objects(env), collapse="|"), ")")
> >bquoteExpr <- parse(text=gsub(pattern,
> > "~(.(\\1))",
> > name))[[1]]
> ># I use do.call() to work around the
Date"]],
ylab=DATA_expressions[["K_mgkg"]])
Bill Dunlap
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
lap tibco.com
From: Shane Carey [mailto:careys...@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))
in t
t; #[[2]]
> #B ~ (mg ~ kg^{
> # -1
> #})
>
>
> f("Na_mgkg")
> #Na ~ (mg ~ kg^{
> #-1
> #})
>
> A.K.
>
> - Original Message -
> From: Shane Carey
> To: William Dunlap
> Cc: "r-help@r-project.org"
> Sen
B ~ (mg ~ kg^{
# -1
#})
f("Na_mgkg")
#Na ~ (mg ~ kg^{
# -1
#})
A.K.
- Original Message -
From: Shane Carey
To: William Dunlap
Cc: "r-help@r-project.org"
Sent: Thursday, April 4, 2013 5:39 AM
Subject: Re: [R] Superscript
Hi William,
Im trying to run t
t; }
>
> d <- data.frame("Na_mgkg"=1:10, "K_ugkg"=10:1)
> plot(Na_mgkg ~ K_ugkg, data=d, xlab=f("K_ugkg"), ylab=f("Na_mgkg"))
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
>
>
> > -Original Message-
t;), ylab=f("Na_mgkg"))
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
>
>
> > -----Original Message-
> > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf
> > Of Shane Carey
> > Sent: Wednesday,
0:1)
> plot(Na_mgkg ~ K_ugkg, data=d, xlab=f("K_ugkg"), ylab=f("Na_mgkg"))
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
>
>
> > -Original Message-
> > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.or
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 wrote:
>
> On Apr 3, 2013, at 9:06 AM, Shane Carey wrote:
>
> > Hi,
> >
> > If I have
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 )
>
..@r-project.org] On
> Behalf
> Of Shane Carey
> Sent: Wednesday, April 03, 2013 8:02 AM
> To: r-help@r-project.org
> Subject: [R] Superscript
>
> Hi,
> How do I write a superscript within gsub?
>
> I have the following: gsub("_mgkg",expression(paste("
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 )
-1
D (mg kg )
-1
E (mg kg )
gsub searches strings, not expressions.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead:
Ok thanks
On Wed, Apr 3, 2013 at 4:15 PM, Duncan Murdoch wrote:
> 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,
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 b
Hi,
How do I write a superscript within gsub?
I have the following: gsub("_mgkg",expression(paste("mg kg"^{-1})),names[1])
Thanks
--
Shane
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailm
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 n
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'
On Tue, Mar 19, 2013 at 9:29 AM, Benjamin Gillespie wrote:
> 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:
>
> capaci
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:
capacity 10^3 m^3
(with ^ denoting superscript (i.e. each '3' as superscript).
I've
Hi Nevil,
Here is one option:
## function definition
r2format <- function(object, digits = 3, output, sub, expression = TRUE, ...) {
if (inherits(object, "lm")) {
x <- summary(object)
} else if (inherits(object, "summary.lm")) {
x <- object
} else s
I am trying to put an
R2 value with R2 formatted with a superscript 2 followed by "=" and the
value :
the first mtext prints the R2 correctly formatted but follows it with
"=round(summary(mylm)$r.squared,3)))" as text
the second prints "R^2 =" followed by the value of
round(summary(mylm)$r.squ
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 mailing
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.
--
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, xlab=expression(d
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["
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 wrote:
> Salut,
> I have been struggling to superscript the 18 before the O without ^ visible
> an
Salut,
I have been struggling to superscript the 18 before the O without ^ visible
and found only help to superscript numbers after the letter. Thanks to
anyone who can help.
xlab=expression(delta*18O VSMOW [‰]")
Cheers,
Janine
--
View this message in context:
http://r.789695.n4.nabble.com/Supers
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
http
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.
Hi there,
How can I superscript the "2" of "r2 =..." in the legend below?
legend(210, 110, paste("r2 = ",
format(summary(regression)$adj.r.squared,digits=3), sep=""))
I usually use "expression(paste(...", but it won't work this time because
"format(summary(..." needs to be evaluated.
Thank
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.
___
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 h
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:
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
On Fri, 2010-10-22 at 15:39 +0200, Claudia Beleites wrote:
> On 10/22/2010 03:15 PM, DrCJones wrote:
>
> 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:
>
"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:
http://r.789695.n4.nabble.com/superscript-characters-in-title-with-tp300
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(
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
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
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 wrote:
>
> Hi,
>
> How can I get the '2+' int
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,
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?
hist(X, main=expression(([Ca*]i^2+) 'onsets'), xlab = 'sec')
--
View this message in context:
http://r.789695.n4.nabble.com/superscr
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 Nabble.co
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 Nabble.co
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("toplef
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..
>
> t
hello,
i need to add legend text: "4th-root transformation", with the "th"
superscripted -
tried much - but nothing worked..
thanks for any hints,
kay
-
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of Innsbruck
--
View this
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 :
> I know that this has been revisited over and over, yet I cannot figure out
> how to solve
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 ye
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, any
suggestions?
legend
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
> ylab=expression
S Ellison wrote:
"Lathouri, Maria" 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
ylab=expression(Temper
>>> "Lathouri, Maria" 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)
***
Dear all
I am doing some plots in R.
I want to have as label in y-axis Temperature (oC). I have used
ylab=expression(paste({Temperature} ^o*C)) but what I get is TemperatureoC.
How can I have a space between Temperature and the units and also the units to
be in brackets?
Many thanks
Maria
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 htt
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!
>
> mte
Dear all,
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!
mtext(side=2, line=5.5, "Monthly Precipitation (mm x 10^2/month
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 F
North Carolina 27710
Telephone: (919) 681-7132
Fax: (919) 668-7093
E-mail: daniel.more...@duke.edu
David Douterlungne
Sent by: r-help-boun...@r-project.org
02/14/2009 12:21 AM
To
cc
Subject
[R] superscript
Dear R-users.
I'm struggeling to fix the superscript of a label of a figure
Dear R-users.
I'm struggeling to fix the superscript of a label of a figure axis. For some
reason R doesn't recognize the "hat" symbol.
plot(1,1,xlab="ligth intensity (PAR)",ylab=expression("mass Pteridium
rhizomes" (gr/0.25m^2)))
A very similiar scriptline does not give any pro
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
Hi all,
I'd like to use superscript or subscript in the axis label of a graph. Is
that possible in R?
For instance in xlab="Ce (mmol/m3)", I'd need the "3" of cubic meter in
superscript.
Regards/Cordialement
-
Benoit Boulinguiez
Ph.D
Ecole de Chimie de Rennes (ENSCR) Bureau 1.20
E
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
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
>
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 of them work. I am trying to get the following as the main title of my
plot:
Emission of CO2 with time
(but note that 2 is subscript.)
I have t
On Sun, 2008-05-11 at 09:58 -0400, Agus Susanto wrote:
> Is that possible to create superscript text on the graph legend, for example
> to put "cm2" (centimeter square) on the legend. Please show me how to do it.
> Thanks.
Here is one way, showing super and subscripts. The key bit is the
expressio
Is that possible to create superscript text on the graph legend, for example
to put "cm2" (centimeter square) on the legend. Please show me how to do it.
Thanks.
--
Agus Susanto
[[alternative HTML version deleted]]
__
R-help@r-project.org mail
89 matches
Mail list logo