Displaying 20 results from an estimated 500 matches similar to: "ggplot2: sub/super-script axes labels"
2008 Sep 10
1
ggplot2: edge outlines on points
The graphic design elements in ggplot2 are so well done for color
graphics. Thank you! For BW publication graphs, there are a few
options I would like to be able to tweak, but can't seem to find the
grob handles necessary OR the right plotting strategy. Here's one
problem I've been puzzling over:
Q> How do you plot points with a grey fill and a black outline around
the
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:
2009 Feb 25
1
Computing sd across an array with missing values
Dear help, suppose I have this array and want to compute sd aross rows and
columns.
p <- array(c(1:5, rep(NA, times = 3)), dim = c(5, 5, 3))
apply(p, 1:2, sd) fails because sd requires at least 2 numbers to compute sd
apply(p, 1:2, sd, na.rm = TRUE) fails for the same reason
I crafted my own function that does what I want
sd_fun <- function(i){
if(sum(!is.na(i))==0){
temp.sd <- NA
2010 Apr 25
1
Manipulating text files
Dear R Community,
I am trying to optimize a water quality model that I am using. Based on conversations with others more familiar with what I am doing I plan to implement DEOptim to do this. The water quality model is interfaced through a GUI. I have the input file necessary to alter parameters and run the model as a text file.
To do the optimization I have figured out the general procedure
2006 Nov 10
1
missing symbols for mathplot
Hi all,
I'm trying to write an axis label
that sounds P( X | K and Xb ) (probability of X given K and Xb )
but I need the intersection symbol
(the "\cap" in latex)
Actually I did'nt find any "cap" symbol
in plotmath, the only one is
intersect(A[i],i==1,n)
but is not my case because subscripts and arguments are mandatory.
Anyone knows how to do?
Thanks
Andrea
--
2011 May 03
3
ANOVA 1 too few degrees of freedom
I'm running an ANOVA on some data for respiration in a forest. I am having a
problem with my degrees of freedom. For one of my variables I get one fewer
degrees of freedom than I should.
I have 12 plots and I therefore expected 11 degrees of freedom, but instead
I got 10.
Any ideas?
I have some code and output below:
> class(Combined.Plot)
[1] "character"
>
2002 May 10
1
expression in lattice
After checking the usual archives (Baron search engine) I came up nothing.
It appears that ylab=expression() doesn't work in lattice? How do I put
superscripts in ylab?
Many Thanks,
Hank
Martin Henry H. Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami University
Oxford, OH 45056
Office: (513) 529-4206
Lab: (513) 529-4262
FAX: (513) 529-4243
2007 Mar 21
2
Detailed legend in mathplot ...
Hello,
Recently, I have asked for a help with building graphs, and I got few
great advices. Now, my appetite is growing :) and I wander how to add
legend for two (or more) lines in following example:
matplot(DAT[, c(3,4)], type="b", ylim=c(0,8), xaxt="n", yaxt="n",
+ pch=c(21,22), col="black", lty=c("dashed","solid"), xlab="",
2005 Jun 14
3
superscript in figures - basic question
Although I see similar, but more complex, questions addressed in the help
archive, I'm having trouble adding superscripted text to the y-axis labels of
some figures, and I can't find anything in the R documentation on this.
I have:
ylab="BA (m2/ha)"
but I want the "2" to be superscripted.
Thanks in advence for the help, or for pointing out the appropriate help file.
2008 Nov 09
1
choice of an HMM package
We are trying to build a human respiration model.
Preliminary analysis of some breathing signals has shown that humans breathe
through switching among
a finite number of patterns.
Hidden Markov seems to be the right approach. Since most of our code is
written in R scripting language, finding an R package implementing an HMM
that we can use for our prototype would be very helpful.
I have been
2012 Mar 21
1
nlme error on dimensions in multiplication
Hello R users,
When trying to fit a nonlinear mixed model to a respiration time series,
I get the following error message:
Error in recalc.varFunc(object[[i]], conLin) :
dims [product 30] do not match the length of object [34]
In addition: Warning message:
In conLin$Xy * varWeights(object) :
longer object length is not a multiple of shorter object length
Below is an example that generates
2012 Nov 12
2
Using "apply" instead of "for" loop / multithreading
Hello ,
I'm new to R and don't really understand how to use the function "apply"
instead of a "for loop", particularly for a function with multiple entries.
I have a big data file and would like to apply a function in multi thread to
accelerate the processus.
I have a data frame containing values of* CO2 in ppm (resp[i,6])* that I
want to convert in umol of CO2
2008 Jul 28
1
Interpolating a line and then summing there values for a diurnal oxygen curve (zoo object)
#I would like to interpolate a straight line between 06/08/06 04:16:00 -
06/08/06 20:31:00 with values and then sum them. This is an estimate of
ecosystem #respiration and I will be using this in a larger context(48 days
of these diurnal curves), but for right now I am just trying to figure out
how to do it for this one #day example. I have some other code for
Ecosystem (stream) Metabolism that
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
2008 Oct 23
4
odfWeave error
odfWeave is throwing up a cryptic error, after successfully processing a
file with a large number of figures (~30) and many \Sexpr{} calls. The
error is (at least to me) cryptic. I am not sure where to look to
correct this problem.
Here's the error:
Post-processing the contents
Error in .Call("RS_XML_Parse", file, handlers, endElementHandlers,
as.logical(addContext), :
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]]
2008 Nov 07
0
help with syntax of random formula
Dear R-users
Thanks to Jose Pinheiro, Douglas Bates and coworkes for providing R with the nlme package.
Could someone help me, please, to specify a correct random formula for a
mixed model, that specifies no random effect on a higher level?
I have the following dataset of timeseries of respiration measurements
(column resp) of biomass including a parameter initial biomass x0. Respiration
2010 Mar 02
0
plotting fitted lme values as a smooth line
I am trying to plot fitted lme values as a smooth line of a graph
showing the exponential relationship between temperature and soil
respiration.
In the plot, the x-axis has temperature, and the y-axis has soil
respiration. When I try to add a line showing temperature versus the
fitted values, it is jagged and not smooth.
Here is the code I used:
lme.1<-lme(fixed=LnFlux~Temp,
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:
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