[R] superscript of plot 2 x-mean(x) vs. (x-xmean)^2 has part of the superscript 2 cutoff.

2022-04-10 Thread Sorkin, John
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

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
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

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
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

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

[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 Rosa Oliveira
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

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

[R] Superscript in graph text

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

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

[R] Superscript in legend without using expression function

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

Re: [R] Superscript

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

Re: [R] Superscript

2013-04-04 Thread Paul Johnson
ot;, paste(objects(env), collapse="|"), ")") > >bquoteExpr <- parse(text=gsub(pattern, > > "~(.(\\1))", > > name))[[1]] > ># I use do.call() to work around the

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
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-

Re: [R] Superscript

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

Re: [R] Superscript

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

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
..@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("

[R] Superscript and for loops

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

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

[R] Superscript

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

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

[R] Superscript followed by number then superscript in text

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

Re: [R] How to format R superscript 2 followed by "=" value

2011-10-02 Thread Joshua Wiley
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

[R] How to format R superscript 2 followed by "=" value

2011-10-02 Thread Nevil Amos
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

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

[R] Superscript number before letter

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

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.

[R] superscript

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

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

[R] superscript characters in title with '+'

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

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

[R] superscript

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

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

[R] superscript troubles

2009-11-02 Thread Jacob Kasper
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

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) ***

[R] superscript in ylab

2009-10-28 Thread Lathouri, Maria
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

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

[R] Superscript in y-axis of plot

2009-06-16 Thread Steve Murray
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

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
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

[R] superscript

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

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

[R] superscript text style in axis label in graph

2008-09-23 Thread Benoit Boulinguiez
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

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 >

[R] Superscript/Subscript in main title

2008-06-04 Thread Tariq Perwez
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

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

[R] superscript text on graph legend

2008-05-11 Thread Agus Susanto
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