Displaying 20 results from an estimated 3000 matches similar to: "Multicolor main title in a plot or mtext"
2012 Apr 10
2
substitution of the ASCII character "squared" AKA "^2" AKA (alt+0178) with a tractable one
Deae R helpers,
the problem I'm facing today is related to the manipulation of a string.
The string is coming from a a porosimeter, whose control is under a
complicate set-up of two computers
One (running on DOS) is controlling directly the hardware, while the
other (running on win XP) which process the data is connected to the
first one via serial. I get the data from this last computer.
2010 Oct 19
2
superpose.polygon, panel.polygon and their colors
Dear R-helpers,
the problem I'm facing today is to convince lattice to paint some areas
in gray.
The areas I would like to have in gray, are confidence bands
I've googled around in the mailing list archives and eventually find
some clues.
This link is my starting point
http://tolstoy.newcastle.edu.au/R/e2/help/07/04/15595.html
I'm reproducing here the code for your convenience
est
2010 Jun 29
1
Sweave, xtable plus/minus sign
Dear R-users,
please consider the following minimal example:
\documentclass[a4paper,titlepage,onecolumn,12pt]{article}
\usepackage[italian]{babel}
\usepackage{amssymb}
\usepackage[utf8x]{inputenc}
\usepackage[pdftex]{graphicx}
\begin{document}
<<label=test, echo=FALSE, results=tex>>=
df.data1 <-
cbind.data.frame(A = rnorm(18),
B =factor(rep(LETTERS[1:6],
2010 May 27
3
rjags in Ubuntu 10.04
I've not been able to install rjags successfully in Ubuntu 10.04 :
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'rjags', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared library
'/home/scott/R/i486-pc-linux-gnu-library/2.11/rjags/libs/rjags.so':
libjags.so.2: cannot open shared object file:
2010 Nov 16
4
Simple error handling in R
Hi R experts,
I am looking for a simple error handling approach, whereby I could stop
function execution with a customized error message. For example:
for (i in 1:10) {
if (i == 5)
# I'd like to be able to stop right here with an error message I have
complete control over
}
The problem with stop() is that I cannot control completely what gets
printed to the terminal, even with
2010 Nov 16
0
LATTICE. On skip, index.cond with a formula like Y~X|A+B
Dear invaluable R-list,
my present problem is arranging/removing some panels in a lattice plot.
Please consider the following:
df.data <-
cbind.data.frame(expand.grid(SUBJ=1:5,
TREAT=LETTERS[1:4],
REF=letters[1:4]
)
)
df.data <-
2008 Jan 29
3
on trellis.par.set/get (reproducing figures from Pinheiro & Bates)
Dear R users,
I would like to exactly reproduce a figure like the 1.5 or 1.9 or 4.13
from the book
Mixed effects models in S and S-Plus.
Not for the sake of it, but because I have my own data I would like to
plot in that fashion
(no colors)
If I write
plot(ergoStool)
I can get a good informative plot with colors, but I would like to have
a B&W one instead.
I've played a little with
2009 Sep 03
2
dividing a dataframe column by different constants
Dear R users, today I've got the following problem.
Here you are a dataframe as example.
There are some SAMPLES for which a CONCentration was recorded through TIME.
The time during which the concentration was recorded is not always the same,
10 points for Sample A, 7 points for Sample B and 11 for sample C
Also the initial concentration was not the same for the three samples.
I would like
2008 May 06
4
Is there in R a function equivalent to the mround, as found in most spreadsheets?
Dear R-users,
I have the following problem
In a lab experiment I have to mix three solutions to get different
concentrations of various molecules in a cuvette
I've used R to calculate the necessary ?liters for each of the level of
the experiment and I must confess that it is more useful and easier to
achieve the results than using spreadsheets.
But there's a problem.
Imagine that
2007 Jul 26
3
substituting dots in the names of the columns (sub, gsub, regexpr)
Dear R users,
I have the following two problems, related to the function sub, grep,
regexpr and similia.
The header of the file(s) I have to import is like this.
c("y (m)", "BD (g/cm3)", "PR (Mpa)", "Ks (m/s)", "SP g./g.", "P
(m3/m3)", "theta1 (g/g)", "theta2 (g/g)", "AWC (g/g)")
To get rid of spaces and
2009 Nov 12
1
Rearranging long tables, Sweave, xtable, LaTeX
Dear R-users,
consider the two following outputs, ## 1 and ## 2
\begin{Scode}{Setup, echo = FALSE, print = FALSE, eval = TRUE}
with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1,
Fact2)) ## 1
xtable(with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1,
Fact2))) ## 2
\end{Scode}
The first line
with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1, Fact2))
2009 Dec 02
4
Again on overlaying plots (a plot region within a plot region)
Dear R-users,
after seeking for help in R-search
I did not find any hint on my particular problem.
Countless help on "true" overlay, but nothing on this.
Please consider the following:
par(mfrow = c(2, 1))
T <- seq(0, 20, by = 0.01)
## PLOT 1
plot(T, 30*exp(-0.65*T),
type = "l"
)
points(T, 30*exp(-0.26 * T), type = "l", lty = "F8")
points(T,
2009 Aug 13
1
R code to reproduce (while studying) Bates & Watts 1988
Hi R users,
I'm here trying to understand correlated residuals in nonlinear estimation.
I'm reading/studying the book Bates, D. M. and D. G. Watts, (1988),
/Nonlinear regression analysis and its applications/, Wiley, NY. pages
92-94, trying to reproduce the figures and to find out the code in R to
perform the necessary calculations.
I also consulted Pinheiro and Bates, but without
2009 Nov 16
2
on gsub (simple, but not to me!) sintax
Dear R users,
my problem today deals with my ignorance on regular expressions.
a matter I recently discovered.
Consider the following
foo <-
c("V_7_101110_V", "V_7_101110_V", "V_9_101110_V", "V_9_101110_V",
"V_9_s101110_V", "V_9_101110_V", "V_9_101110_V", "V_11_101110_V",
"V_11_101110_V",
2009 Oct 30
1
How to properly shade the background panels of an xyplot?
Dear R users,
this is a follow up of this message
http://tolstoy.newcastle.edu.au/R/e6/help/09/05/13897.html
I'm reproducing the core of it for convenience.
> //
> / data(Oats, package = "MEMSS") /
> / tp1.oats <- xyplot(yield ~ nitro | Variety + Block, /
> / data = Oats, /
> / panel = function(x, y, subscripts, ...) { /
2005 Jun 17
1
Mixed model question
Hi,
I am new to this list as a poster, but a reader for some time.
I've using R for several weeks now, and I have a lot of questions about
certain procedures. Here I go:
I want to test if there are differences in the time spent by pollinators
visiting flowers of a given plant species, according to a number of
experimental manipulations made on those flowers. All experimental
2009 Oct 30
1
insert a text in panels, always in the same position (lattice, ltext, ?prepanel?)
Dear R-users,
my present problem is related to lattice.
I would like to put some text in each panel, namely a p-value.
I therefore wrote a simple panel function as reported here below.
I'm able to write the value in each panel at the maximum value of y for
each panel,
but this obviously overlay the text to the points.
What I'm looking for is to write the text always in the same
2007 Nov 06
2
Is it possible to modify the position of the graphic window ?
Dear R users,
is there a way to tell R where to draw the windows where the plots are
drawn ?
I always get that window on the right of my screen, where it interferes
with my Xemacs + ESS window where I'm writing lines.
Of course I can move it manually, but I would like to have it
permanently on the right, rather than on the left.
Thanks for any advice
Ottorino
Ubuntu 7.10
Xemacs 21.4
2009 Oct 05
0
Help in the mtext function
Hi
Can anyone please help me in understanding the utility of "padj" and "outer
(logical)" values in the '*mtext function*'
given below are the output I generated on using the below code which is
different from the formula description on r help
> par(mfrow=c(2,1),xpd=NA)
> y1 <- rnorm(100)
> plot(y1,ann=F,axes=F,type="l")
>
2006 Sep 28
1
I: differences between R and S (reproducing a plot from a book )
Dear R-Users,
I'm currently studying the book
Statistical model in S by Chambers J.M and Hastie T.J..
At page n 3 there's a plot showing the means of a variable at each of the
levels of the factors of an experiment.
I hope to be able to reproduce it here by ASCII art.
B6
S |
| Thin |
| | |
| | B3
__|_____|_____|__......etc
| |