Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-08-02 Thread Rosa Oliveira
> 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

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-08-01 Thread PIKAL Petr
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

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread PIKAL Petr
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

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread Rosa Oliveira
>>> -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

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread Martin Maechler
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

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread PIKAL Petr
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

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread Martin Maechler
> 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! E

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread PIKAL Petr
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 <- apply(CRP7,

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-28 Thread Bert Gunter
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

Re: [R] Superscript in graph text

2017-01-18 Thread Jake William Andrae
: 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

Re: [R] Superscript in graph text

2017-01-18 Thread Richard M. Heiberger
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

Re: [R] Superscript in graph text

2017-01-18 Thread Richard M. Heiberger
?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

Re: [R] Superscript in graph text

2017-01-18 Thread Bert Gunter
?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

Re: [R] Superscript in legend without using expression function

2015-02-10 Thread jgui001
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

Re: [R] Superscript in legend without using expression function

2015-02-08 Thread Gabor Grothendieck
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

Re: [R] Superscript in legend without using expression function

2015-02-07 Thread David Winsemius
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

Re: [R] Superscript in legend without using expression function

2015-02-07 Thread Rolf Turner
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

Re: [R] Superscript

2013-04-05 Thread Shane Carey
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 wrote: > > > > On Thu, Apr 4, 2013 at 4:39 AM, Shane Carey wrote: > >> Hi Wi

Re: [R] Superscript

2013-04-04 Thread Paul Johnson
On Thu, Apr 4, 2013 at 4:39 AM, Shane Carey 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 type fix >

Re: [R] Superscript

2013-04-04 Thread William Dunlap
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

Re: [R] Superscript

2013-04-04 Thread William Dunlap
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

Re: [R] Superscript

2013-04-04 Thread Shane Carey
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

Re: [R] Superscript

2013-04-04 Thread arun
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

Re: [R] Superscript

2013-04-04 Thread Shane Carey
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})),

Re: [R] Superscript

2013-04-04 Thread 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,

Re: [R] Superscript

2013-04-03 Thread Shane Carey
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 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 functions like gsub

Re: [R] Superscript and for loops

2013-04-03 Thread Shane Carey
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

Re: [R] Superscript and for loops

2013-04-03 Thread David Winsemius
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 ) >

Re: [R] Superscript

2013-04-03 Thread William Dunlap
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 correspondin

Re: [R] Superscript

2013-04-03 Thread Jeff Newmiller
gsub searches strings, not expressions. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead:

Re: [R] Superscript

2013-04-03 Thread Shane Carey
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,

Re: [R] Superscript

2013-04-03 Thread Duncan Murdoch
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

Re: [R] Superscript followed by number then superscript in text

2013-03-19 Thread Benjamin Gillespie
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

Re: [R] Superscript followed by number then superscript in text

2013-03-18 Thread Rui Barradas
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'

Re: [R] Superscript followed by number then superscript in text

2013-03-18 Thread Thomas Lumley
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

Re: [R] Superscript number before letter

2011-05-04 Thread Janhal
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

Re: [R] Superscript number before letter

2011-05-04 Thread David Winsemius
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. --

Re: [R] Superscript number before letter

2011-05-04 Thread Richard M. Heiberger
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

Re: [R] Superscript number before letter

2011-05-04 Thread David Winsemius
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["

Re: [R] Superscript number before letter

2011-05-04 Thread Richard M. Heiberger
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

Re: [R] superscript

2011-02-01 Thread fgg
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

Re: [R] superscript

2011-02-01 Thread fgg
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.

Re: [R] superscript

2011-02-01 Thread jthetzel
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. ___

Re: [R] superscript

2011-02-01 Thread jthetzel
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

Re: [R] superscript characters in title with '+'

2010-10-26 Thread David Winsemius
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

Re: [R] superscript characters in title with '+'

2010-10-26 Thread Gavin Simpson
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: >

Re: [R] superscript characters in title with '+'

2010-10-22 Thread DrCJones
"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

Re: [R] superscript characters in title with '+'

2010-10-22 Thread Claudia Beleites
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(

Re: [R] superscript characters in title with '+'

2010-10-22 Thread David Winsemius
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

Re: [R] superscript characters in title with '+'

2010-10-22 Thread DrCJones
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

Re: [R] superscript characters in title with '+'

2010-10-22 Thread Dennis Murphy
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

Re: [R] superscript characters in title with '+'

2010-10-22 Thread David Winsemius
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

Re: [R] superscript

2010-05-04 Thread Kay Cichini
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

Re: [R] superscript

2010-05-04 Thread Kay Cichini
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

Re: [R] superscript

2010-05-04 Thread Duncan Murdoch
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

Re: [R] superscript

2010-05-04 Thread Jorge Ivan Velez
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

Re: [R] superscript troubles

2009-11-02 Thread baptiste auguie
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

Re: [R] superscript troubles

2009-11-02 Thread Peter Dalgaard
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

Re: [R] superscript in ylab

2009-10-29 Thread Walmes Zeviani
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

Re: [R] superscript in ylab

2009-10-28 Thread Peter Ehlers
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

Re: [R] superscript in ylab

2009-10-28 Thread S Ellison
>>> "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) ***

Re: [R] Superscript in y-axis of plot

2009-06-16 Thread baptiste auguie
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

Re: [R] Superscript in y-axis of plot

2009-06-16 Thread Philipp Pagel
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

Re: [R] superscript

2009-02-16 Thread David Douterlungne
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

Re: [R] superscript

2009-02-13 Thread Daniel Moreira
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

Re: [R] superscript text style in axis label in graph

2008-09-23 Thread Jorge Ivan Velez
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

Re: [R] Superscript/Subscript in main title

2008-06-04 Thread Christoph Meyer
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

Re: [R] Superscript/Subscript in main title

2008-06-04 Thread Henrique Dallazuanna
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 >

Re: [R] superscript text on graph legend

2008-05-11 Thread Gavin Simpson
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