Displaying 20 results from an estimated 1000 matches similar to: "Highlighting different series with colors"
2010 Dec 07
3
string
Hi,
I'm running R 2.11
Does anyone know if it possible to transform one character vector to one
character string ?
Many thanks
Benoit
--
Benoit Wastine
Laboratoire des Sciences du Climat et de l?Environnement (LSCE/IPSL)
CEA-CNRS-UVSQ
CE Saclay
Orme des merisiers
B?t 703 - Pte 13A
91191 Gif sur Yvette Cedex
France
Tel : 33 (0)1 69 08 21 97
Fax : 33 (0)1 69 08 77 16
2008 Feb 26
2
Multiple lines with a different color assigned to each line (corrected code)
Sorry, I just realized I didn't type in the correct
names of the variables I am working with, this is how
it should be:
plot(1,1,type="n")
for (i in summ$tx) {
points(summ$timep[summ$tx==i],summ$mn[summ$tx==i])
lines(summ$timep[summ$tx==i],summ$mn[summ$tx==i])
}
Thank you,
Judith
____________________________________________________________________________________
2008 Jun 04
2
Constructing groupedData objects in nlme - a little problem
Dear R-help,
I am trying to create groupedData objects using the nlme library. I'm
missing something basic, I know:
Here is the first example in ch.1 of Pinheiro & Bates (2000):
library(nlme)
x2=Rail$travel;x1=Rail$Rail;eg1=data.frame(x1,x2);eg1gd=Rail
print(eg1gd)
x11();print(plot(eg1gd))
femodel=lm(x2~x1-1,data=eg1gd)
print(femodel$coefficients)
Result:
x12 x15 x11
2013 Mar 18
2
OrgMassSpecR peak area issue
Hello!
I am having an issue with the OrgMassSpecR package. I run my HPLC using a
DAD detector. My raw data is exported form chemstation as a csv file. I
then upload the csv into Rstudio no problem. Using the DrawChromatogram
function, I get a nice chromatogram, and my retention time, peak area, and
apex intensity values are given as well.
The problem comes with the peak area value given. The
2007 Nov 12
1
rsync 3.0.0 pre5 + hard link preversation trigger assert
I've setup rsync 3.0.0 pre5 on distrib-coffee.ipsl.jussieu.fr (rsync server)
and upload the same into mandriva cooker (development distribution).
Someone reported this failure:
rsync -auvPH --delete
--exclude-from="/home/rfox/exclude.txt"
distrib-coffee.ipsl.jussieu.fr::mandrivalinux/devel/cooker/i586/ .
receiving incremental file list
rsync: hlink.c:253: check_prior: Assertion
2018 May 24
2
Problem with adding a raster and a brick
Hi,
I seem to be having a problem adding the following two raster objects
together - one is a rasterLayer, the other is a rasterBrick. The extent,
resolution, and origin are the same, so according to my understand it
should work. The objects look like so:
> obs.clim
class : RasterLayer
dimensions : 60, 200, 12000 (nrow, ncol, ncell)
resolution : 0.5, 0.5 (x, y)
extent : -70,
2010 Jun 05
2
how to use 'points' function to plot two curves with errbar
Dear R Users,
I am using R on windows.
how to use 'points' function to plot two curves with errbar
I am doing like:
x.val <- as.integer(names(co2mean))
errbar(x.val, co2mean, co2mean + co2sd, co2mean - co2sd, xaxt='n', col=1,
xlab=NA,ylab=NA)# obs error bar
lines(x.val, co2mean, col=1, lwd=2)
errbar(x.val, co2tm3.month.mean, co2tm3.month.mean + co2sd.tm3,
co2tm3.month.mean -
2007 Feb 22
3
several Filled.contour plots on the same device...
hello -
a question about filled.contour plots, for which i haven't found a
response in previous posts - sorry if already treated.
i'd like to draw several filled.contour plots (that is, maps) on the same
device (a postscript file, actually). I know about layout(matrix) ,
split.screen or par(mfrow) : it works well for simple plots, but with
filled.contour plots, i get several pages
2011 Feb 21
1
R upgrade from 2.7.1
My R version is 2.7.1 (on Debian) and some packages are asking for > 2.10.
I've done all things from http://cran.r-project.org/bin/linux/debian/ but to
no success.
Apt-get upgrade is doing nothing.
server:/etc/R# apt-cache policy r-base-core
r-base-core:
Installed: 2.7.1-1+lenny1
Candidate: 2.7.1-1+lenny1
Version table:
*** 2.7.1-1+lenny1 0
500 http://mirrors.nl.kernel.org
2023 Jan 12
4
return value of {....}
Hello Akshay,
R is quite inspired by LISP, where this is a common thing. It is not in fact that {...} returned something, rather any expression evalulates to some value, and for a compound statement that is the last evaluated expression.
{...} might be seen as similar to LISPs (begin ...).
Now this is a very different thing compared to {...} in something like C, even if it looks or behaves
2006 Jul 07
6
parametric proportional hazard regression
Dear all,
I am trying to find a suitable R-function for
parametric proportional hazard regressions. The
package survival contains the coxph() function which
performs a Cox regression which leaves the base hazard
unspecified, i.e. it is a semi-parametric method. The
package Design contains the function pphsm() which is
good for parametric proportional hazard regressions
when the underlying base
2023 Jan 13
1
return value of {....}
R's
{ expr1; expr2; expr3}
acts much like C's
( expr1, expr2, expr3)
E.g.,
$ cat a.c
#include <stdio.h>
int main(int argc, char* argv[])
{
double y = 10 ;
double x = (printf("Starting... "), y = y + 100, y * 20);
printf("Done: x=%g, y=%g\n", x, y);
return 0;
}
$ gcc -Wall a.c
$ ./a.out
Starting... Done: x=2200, y=110
I don't like that
2023 Jan 09
3
return value of {....}
Dear Valentin,
But why should {....} "return" a value? It could just as well evaluate all the expressions and store the resulting objects in whatever environment the interpreter chooses, and then it would be left to the user to manipulate any object he chooses. Don't you think returning the last, or any value, is redundant? We are living in the 21st century
2018 Mar 20
2
MIR YAML deserialisation failure
Valentin,
in terms of limitations as Sean pointed out, an important one is that .mir
doesn't have MachineFunctionInfo which may result in failure on accesses to
global variables due to use of register X2. The verifier considers it an
undefined register.
Also, it's probably easier to reduce test cases using bugpoint starting
from an IR test case. With the code you provided, I get a
2023 Jan 15
3
return value of {....}
I wonder if the real confusino is not R's scope rules?
(begin .) is not Lisp, it's Scheme (a major Lisp dialect),
and in Scheme, (begin (define x ...) (define y ...) ...)
declares variables x and y that are local to the (begin ...)
form, just like Algol 68. That's weirdness 1. Javascript
had a similar weirdness, when the ECMAscript process eventually
addressed. But the real
2017 Mar 16
2
unable to execute QEMU command 'migrate': this feature or command is not currently supported
Hi all
I'm trying to do a live migration with non-shared storage on CentOS 7.
It was working
well doing it from CentOS 6 to CentOS 7 but not between to CentOS 7
machines. I read
that this feature was removed in RHEL/CentOS 7 but should be available
in the CentOS-QEMU-EV
repository. But I still get the error using qemu-kvm-ev:
error: internal error: unable to execute QEMU command
2010 Nov 02
1
R install in Ubuntu maverick issues
I am trying to install the maverick version. The lucid version works
flawlessly, but this one promts this messages.
The following packages have unmet dependencies:
r-base: Depends: r-base-core (>= 2.12.0-1maverick0) but it is not going to
be installed
Depends: r-recommended (= 2.12.0-1maverick0) but it is not going
to be installed
Recommends: r-base-html but it is not going
2018 Mar 20
2
MIR YAML deserialisation failure
I'm not sure if this helps, but here it is in case it does.
I typically use bugpoint in a way as to keep the actual failure that I'm
after. For example, with the test case you've pasted, I was looking for a
specific assert. So I used bugpoint this way:
$ cat reduceme.sh
#!/bin/bash
llc -filetype=obj $1 2>&1 | grep 'Cannot lower calls with arbitrary operand
bundles'
2018 Mar 19
2
MIR YAML deserialisation failure
Hello,
I am trying to isolate an assertion failure in if-converter (on PPC) and I
generated a textual debuglog with:
```
LLVM_ARGS=-print-before-all -print-module-scope
-filter-print-funcs=japi1__require_7687
```
and after splicing out the the MIR before the if-converter pass
I would like to run `llc -march=ppc64le -run-pass=if-converter input.mir`
so that I can start minimising the MIR.
This
2023 Jan 09
1
return value of {....}
Returning the last value of { is the basis of functions not needing a
return statement. Before R invokes a function (specifically a closure), it
creates a new context. When R evaluates a call to return, it looks for a
context to return from and finds the context of function, ending the
context and the evaluation of the function body early. However, if you
don't use return, R just returns the