Displaying 20 results from an estimated 10000 matches similar to: "superscript in figures - basic question"
2012 Dec 04
1
control point size of superscript when labeling axes with title()
Hi-
A journal has asked me to make all of my text annotations on a figure at 10-point size. For the most part this is easy, e.g. by creating figures with:
pdf(..., family='Times', pointsize=10)
But where I have superscripts (or subscripts) in axis labels, the default seems to be to shrink the superscripted text slightly. For example this code:
2001 Apr 01
1
ylab/ expression/ superscript to a bracket
Colleagues
----------------------------------
System info:
R version rw1022 on NT
ESS v. 5.1.18 using emacs ver. 20.4
----------------------------------
I have some rather unusual units for acoustic volume backscattering
integrated over several metres depth and 10 transmits (which happens to
= 160 m along transect). I need to express these units in a graph label.
My problem
2002 Jun 19
1
superscripts in xyplot labels
R-helpers;
I tried to get a superscripted 3 in the following xyplot example but failed:
>data(whiteside)
>xyplot(Gas ~ Temp | Insul, whiteside, panel =
function(x, y, ...) {
panel.xyplot(x, y, ...)
panel.lmline(x, y, ...)
}, xlab = "Average external temperature (deg. C)",
ylab = paste(paste("Gas consumption (1000", expression(ft^3),")"), aspect
2004 Aug 09
4
Simultaneous subscripts and superscripts
Dear List,
I'd like to add text to a plot where a text symbol has both a
superscript and subscript. For example, the variable S with a
superscript 2 and a subscript t. I have been able to accomplish this
using either
expression( paste(S,atop(scriptstyle(2),scriptstyle(t))) )
or
expression( {S[t]}^2 )
but the spacing isn't quite right (or rather what I'd like) using
either of
2008 Jul 22
2
Decoding subscripts/superscripts from CSVs
Hi,
I have a CSV file with various biological reactions. Subscripts, superscripts,
and italics are encoded in carats, and I was wondering if R can actually
recognize those and print actual superscripts, etc. Here's an example:
<i>S</i>-adenosyl-L-methionine + rRNA = <i>S</i>-adenosyl-L-homocysteine +
rRNA containing
2008 Aug 01
1
Properly Parsing Pre-Superscripts & Displaying Them With grid.text
Hi all... I?m making a chart dealing with frequencies of isotopes of various
elements. For instance, I'd like the following text to appear on a chart
with the "35" and "37" as superscripts:
Based upon:
35Cl: 75%
37Cl: 25%
I am having problems properly parsing the superscript that preceeds the
"Cl", since there is no character ahead of the superscript (I saw
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 Oct 22
2
superscript characters in title with '+'
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/superscript-characters-in-title-with-tp3006981p3006981.html
Sent from the R
2012 Aug 20
1
Inserting superscripts in free-format text line
I would like to insert a superscript in a body of text (e.g., a title or
axis label), where the superscript is not necessarily at the end of the
text. For example, suppose a title read, "This is a Test^1 of the
Emergency Broadcast System" where there is a superscript 1 after the word
Test.
As a starting point for what I'm trying to do, the following shows a
superscript:
2008 Jan 29
1
Convert string for expression in plot
Hi,
Although I understand how to use expression and paste to add
superscripts and symbols to my graphs, I have a problem with adding
superscripts to an existing string.
For example, I read in the following from a separate file:
25Mg(p,g)
I want to convert that to superscripts etc. (in LaTex format):
$^{25}$Mg(p,$\gamma$)
This needs to then be put into a graph title.
Any ideas? I know that I
2005 Jun 05
1
Superscript text in axis labels
Hello,
I am guessing this is not a difficult question. But at the same time, I
haven't had much luck figuring this issue out from the R documentation and
help pages.
How can I create superscript text in the labels of a plot? The parameter
along my y-axis is volume and my desire is for the y-axis label to read
"Volume (cm^3)" except with the "3" in the superscript
2007 Sep 20
2
Plotmath issue superscript "-"
Dear List,
I'm trying to typeset some chemical ions in axis labels. These have both
super and subscript components, and for some, I need a superscript "-".
In LaTeX I might use $NO_3^-$ to do the typesetting, but I'm having a
problem getting the correct invocation for expression:
> expression(NO^{-}[3])
Error: syntax error, unexpected '}' in
2006 Aug 04
2
expression() - Superscript in y-axis, keeping line break in string
I've tried several different ways to accomplish this, but as yet to no
avail. My y-axis for a plot has a rather long label, and thus I have
been using "/n" to break it into two lines. However, to make it
technically correct for publication, I also need to use superscript in
the label. For example:
par(oma=c(0,0,2,0),mar=c(5,6,0.25,2),lheight=1)
plot(1:10,
2009 Aug 12
2
Superscripts in axis label
Hi All,
I am trying to lable the y-axis on my scatterplot with the following:
"Soil moisture content (m3m-3)"
I am using the following coding for plotting the graph:
plot(soilmoisture~gradientlevel, xlab="Levels of droughting gradient", ylab="Soil moisture content (m3m-3)", bty="l", font.main="2", pch=16, las=1, cex.lab="1.13")
I have
2012 Nov 14
2
vectorized plotmath expressions via substitute()
hi all - i've seen versions of this question before, but none seem to get
directly at my solving my (probably very simple) issue:
i simply want to annotate the tick marks on an axis with (superscripted)
10^x notation, and tried this:
axis(1, at = axTicks(1), as.expression(substitute(10^foo, list(foo =
axTicks(1))))
thinking the as.expression/substitute would create the appropriate
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
2011 Feb 01
2
superscript
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.
Thanks in advance!
--
View this message in
2008 Jul 30
1
Converting to subscripts and superscripts
Hi,
I am reading in a CSV file of chemical reactions where the subscripts and
superscripts are encoded in angle brackets, like below:
2 H<SUP>+</SUP> + 2 O<SUB>2</SUB><SUP>-</SUP>
Is there a way to convert these to actual sub/superscripts and save them in
another excel file? I greatly appreciate the help!
Thanks,
-Nina
PS. I asked this before, but I
2009 May 18
2
Superscripts and subscripts in trellis graphics
I'd like to annotate an xyplot with an R^2 value, but can not find the
syntax to define the superscript format for the text.
I'd appreciate suggestions,
xyplot(SharkSloughEggs.df$Sharkeggs.rel +
SharkSloughEggs.df$SharkHatched.rel + SharkSloughEggs.df$SharkFlooded.rel +
HSI.shark$MEAN ~ Year,
pch=c(1,9,5,4), lty=c(1,6,3,4), lwd = c(2), col = c("black",
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]]