Displaying 20 results from an estimated 150 matches similar to: "Sub- or superscript in factorial variable - possible?"
2009 Aug 19
5
scale or not to scale that is the question - prcomp
Dear all
here is my data called "rglp"
structure(list(vzorek = structure(1:17, .Label = c("179/1/1",
"179/2/1", "180/1", "181/1", "182/1", "183/1", "184/1", "185/1",
"186/1", "187/1", "188/1", "189/1", "190/1", "191/1", "192/1",
2013 Mar 02
1
Expressions in lattice conditional variables
I would like to have a lattice conditioning ( | var ) variable have
expression() as values because I want panel labels to be able to use
plotmath notation for subscripts, etc. lattice barks at this. Does anyone
know of a trick workaround? An attempted example program is below. Thanks
-Frank
require(lattice)
set.seed(1)
var <- c(rep('A', 100), rep('B', 100))
trt <-
2010 Feb 24
2
Calling Data frame objects with spaces in their names
Hello I have the following data frame which I read from an EXCEL file, and
when i try to call one of its columns with a space in their names I am not
being able to. For example if I do EURODOLLAR$ED1.Comdty Date I obtain the
following error:
Error: inesperado sÃmbolo en "EURODOLLAR$ED1.Comdty Date"
I have also tried using . or _ instead of the space and have obtained no
succes. How do I
2017 Nov 22
2
function pointers?
We have a project that calls for the creation of a list of many
distribution objects. Distributions can be of various types, with
various parameters, but we ran into some problems. I started testing
on a simple list of rnorm-based objects.
I was a little surprised at the RAM storage requirements, here's an example:
N <- 10000
closureList <- vector("list", N)
nsize = sample(x
2013 Mar 18
3
Superscript followed by number then superscript in text
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 tried fiddling around with expression(paste(etc.... to no avail. I
2011 May 04
2
Superscript number before letter
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/Superscript-number-before-letter-tp3495577p3495577.html
Sent from the R help mailing list archive at
2012 Feb 09
1
complex subscript/superscript on axis labels
Hi All,
I am having trouble getting a complex subscript to work. I'm sure it's
possible. Here is what I have:
ylab=expression(paste("log ",L[peak]," [erg ",s^{-1},"]")),
I would like to have the subscript read "peak,gamma" where the gamma
would be the greek symbol. I do want the comma to show as well.
Thanks,
EM
1999 Aug 19
1
Mathematical Superscript on the y-axis of a plot
I am trying to get superscripts on the y-axis. I keeping getting syntax
error:
This works as advertised:
> plot(c(1:10), ylab= expression(paste(x^ theta)))
This does not:
>plot(c(1:10), ylab= expression(paste(x^ {++})))
Note that I am trying to get ++ as superscript.
Any suggestions?
Thanks.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing
1999 Dec 13
1
Superscript or subscript on Left hand side of symbol
Is there a way to get subscripts and superscripts on the left hand side of
a symbol? For example, oC or oF (degree Celsius or Fahrenheit)
TIA
Partha
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the
2006 May 02
4
How to write "%" before superscript?
I would like to write atom% 15N in the ylab of a plot - "15" should be
written as superscript. How do I put "%" into the expression? It does
not work if I type "%" directly after "atom" in the expression below.
plot(1:10, ylab = expression(atom^15*N))
Best regards,
Thomas Larsen
[[alternative HTML version deleted]]
2007 Mar 16
1
Complex superscript plot text
Hi all:
I would like to create a line of plot margin text (using mtext() ) that
features both a superscript and a subset of an object. However, I
cannot seem to do both things at once, nor have I found a way to paste
the two results together.
(I pull the object subset because this is part of a for-next loop to
make multiple graphs)
This example doesn't give me what I want from mtext():
2008 May 11
1
superscript text on graph legend
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]]
2008 Sep 23
1
superscript text style in axis label in graph
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
Equipe CIP UMR CNRS 6226 "Sciences Chimiques de Rennes"
Campus
2009 Jun 16
2
Superscript in y-axis of plot
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)", font=2, cex=1.1)
Any advice would be much appreciated,
2009 Oct 28
2
superscript in ylab
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
[[alternative HTML version deleted]]
2010 May 04
4
superscript
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 message in context:
2010 Dec 27
1
another superscript problem
I've exceeded the maximum time I am willing to accept for solving simple
problems so I thank all in advance for your assistance.
I am trying to plot text combined with an object value and a superscript.
obv = 5
text = "Population mean ="
ss = ^o # degrees
Something like this (very naive so you get the idea):
expression(text, obv, ss)
paste(text, obv) # works ...but of course I
2012 May 29
1
Boxplot superscript y-axis
Dear list,
I need to include in a superscript number (-1) in a y-axis label of a
boxplot graphic. I tried the following line:
>boxplot(five$gr13~five$Code, xlab="Species code",
ylab=substitute(paste("DGL growth (cm.yr"^{-1},")")))
It returns the following error message:
Error in "DGL growth (cm.yr"^{ : non-numeric argument to binary operator
I used
2013 Apr 03
3
Superscript
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]]
2013 Apr 03
1
Superscript and for loops
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 )
-1
F (mg