Displaying 20 results from an estimated 500 matches similar to: "coplot has me stumped"
1999 Mar 02
1
Can't understand error message :-{
I'm sorry if this is a basic question, but I'm stumped. I'm just trying to plot
the residuals from a linear model against another variable in the data frame.
Here are the lines I'm trying to execute:
size <- read.table(file="/u67/abasl70/surveys/annenberg/mega/smschl.dat",
header=T)
sizef <- data.frame(size, row.names=size$unit)
attach(sizef)
mschmod <- lm
1999 Mar 02
1
How to set axis labels?
Sorry to bother everyone with such a basic question again, but I can't seem to
set my axis labels. When I use
title(ylab="String")
"String" just overwrites the variable name, producing a mess. When I try to put
ylab="String" in the plot function, like this:
plot(residuals(mschmod) ~ size94, ylab = "Productivity Adjusted for Context")
I get this message:
1999 Mar 02
1
How to set axis labels?
Sorry to bother everyone with such a basic question again, but I can't seem to
set my axis labels. When I use
title(ylab="String")
"String" just overwrites the variable name, producing a mess. When I try to put
ylab="String" in the plot function, like this:
plot(residuals(mschmod) ~ size94, ylab = "Productivity Adjusted for Context")
I get this message:
1999 Apr 16
0
A couple of questions
I just installed the 0.64 rpm for Linux and noticed that the links to
function.html and packages.html on .../doc/html/index.html don't go anywhere.
In fact, those pages don't seem to exist. Do I have to do something to generate
them? Also, will the rpm's for the contrib packages be updated to 0.64 level,
or just R-base?
1999 Feb 02
0
Forcing variables into rpart
I would like to force a specific variable to always be the first split criterion
in rpart, somewhat analagous to forcing a variable into a stepwise regression. I
looked in V & R, and in the help files for the rpart package. If it's there,
it's pretty well hidden. Can anyone help me with this?
______________________________________________________________________
Stuart Luppescu
1999 Jan 22
0
How to get nice trees
I would like to make pretty trees such as the one on page 383 of Chambers and
Hastie, or page 346 of Venables and Ripley. I modified the post.rpart function,
adding splits=T to text(), but the split criteria still don't print. Would
anyone have any advice on this? Thanks.
I'm running version 0.63 on Linux (intel).
______________________________________________________________________
2000 Apr 01
1
R with no gui
I have an old IBM Thinkpad 701 that has a 340MB disk and a 486 CPU that's
not good for much anymore, so I thought I'd install R on it and make it a
little useful. I went to *tremendous* pains to upgrade Linux on it without X so
there would be some room to put R. But having done that I find that the binary
is R.X11 and it's looking for (but can't find) libSM.so, which is ordinarily
2000 Mar 04
1
Need Arith.h
I just installed 1.0 (great job, everyone!) and rebuilt all my packages. I have
found an error in making VR_6.1-6.tar.gz:
Installing package `MASS' ...
libs
gcc -I/usr/lib/R/include -mieee-fp -fPIC -O2 -m486 -fno-strength-reduce -g
-c MASS.c -o MASS.o
MASS.c:631: Arith.h: No such file or directory
make: *** [MASS.o] Error 1
The file /usr/lib/R/include/Arith.h used to be there (locate
1999 Jan 28
1
NAs spoil lowess smoothing
Can anyone explain to me what this error message means, why I'm getting it, and
how to fix it?
lines(lowess(xdat, ydat, f=.5), col=3)
Error: NAs in foreign function call (arg 1)
______________________________________________________________________
Stuart Luppescu -=-=- University of Chicago
ºÍʸ ¤ÈÃÒÆàÈþ¤ÎÉã(EUC) -=-=- s-luppescu at uchicago.edu
2004 Aug 26
1
coplot and par
R 1.9.1 on Win2000 or Win98SE.
I am using coplot as follows:
coplot(AVG~LRPI| REGION)
the output seems normal but I get:
"Warning message:
calling par(new=) with no plot"
This is the only explanation that I have for being unable to use par() with
coplot for changing the way the xlab and ylab appears. From within coplot I
can change the text itself but not the font, fontsize, etc,
2000 Jul 28
4
Language element manipulation
I am very confused about this. I want to convert a string to a name so I can
use it to extract an element of a data frame using `$'. Here is my
(non-working) code:
do.graph <- function (meas)
{
fn <- paste("a", meas, ".dat", sep='')
themeas <- read.table(fn, header=F)
ameas <- as.name(paste("a", meas, sep=''))
2000 Dec 20
1
Question about coplot() ...
Dear R-friends,
For the following data:
> xy
x y i
1 731 0.313 2
2 739 0.340 2
3 790 0.373 2
4 855 0.451 2
5 980 0.608 2
6 575 0.156 1
7 608 0.207 1
8 630 0.249 1
9 670 0.332 1
10 838 0.377 1
11 964 0.466 1
> coplot(y ~ x|i, data=xy)
coplot gives 3 panels, rather than 2, namely one for i=1 and one for
i=2.
Futhermore, when I extand data fram xy to have i=3 as follows:
2004 Jun 05
2
More than one series in a coplot
Hi!
I would like to know, how do you plot more than one data series when
using "coplot"?
I think I know the answer if "plot" is being used:
x <- 1:10
y <- 1:10
y2 <- 1:10* 1.1
plot ( y ~ x, type="n" )
points( y ~ x, type = "b", col = "red" ) # plot the points and lines
for the first series
points( y2 ~ x, type = "b", col =
2004 Jun 26
0
Re: plot.new() warning from coplot()'s par(*, new=FALSE)
{diverted from the R-SIG-gui list}
>>>>> "PD" == Peter Dalgaard <p.dalgaard@biostat.ku.dk>
>>>>> on 26 Jun 2004 11:51:02 +0200 writes:
PD> James Wettenhall <wettenhall@wehi.edu.au> writes:
>> Hi,
>>
>> Does anyone know a good way to get rid of warnings like:
>> Warning message: calling
2000 Sep 15
1
Coplot Question (Unresolved)
Rers,
I still have a question concerning the coplot function.
I have written some code using the coplot:
coplot(y ~ as.numeric(Base) | a * b)
Where Base is a factor.
And it works great! However, according to the way coplot works, Base is
converted by "as.numeric" from Base values, A, C, G, and T to 1, 2, 3,
and 4, which is not very helpful for data
2004 Nov 26
1
Coplot Given text
Greetings:
I am unsuccessful in suppressing "Given : myvariable" from a coplot. There was such a question in the past but the thread breaks down. I am sure this is a "for dummies" question :-). I tried:
coplot(myvar~myvar | myvar, show.given=FALSE, xlab="....", ylab="...", main=" ")
and some other variations (including without main=" ")
2003 Nov 23
1
coplot row separatot line
Hi all,
I could not find a way to add the dashed horizontal separator line to the top
panel of a coplot (the one indicating which panel belongs to which range of the
given variable a in y~x | a).
This line should separate the ranges plotted in a row of panels in the panel
matrix below (hmmm, hope this is reasonably clear). I like it because it
enhances readability.
I'll try a sketch:
>
1999 Jan 15
1
Bug in coplot()
I am using R0.63.1 under Windows 95.
Settings of <number> and <interval> when coplot is called
are ignored, except for generating a warning. For example:
> data(quakes)
> coplot(long ~ lat | depth * mag, data = quakes, number=3)
Warning: parameter "number" couldn't be set in high-level plot() function
The warning is repeated ad nauseum.
The following changes
2007 Dec 03
1
coplot and xyplot and panel functions
Hi,
I wrote a panel function called panelwhite.corplot. If i use this function in a coplot is working fine, but if i use same function with xyplot i get the error: Error using packet 1: plot.new has not been called yet ..... and so on filling all my plots.
So with:
coplot(be~ch|dbh1, envmetr1, panel=panelwhite.corplot)
I get the expected result
with:
xyplot(be~ch | dbh1,
2009 Jun 07
0
writing a panel function in coplot for displaying a non-linear regression model graphically
Hello,I am a little bit struggling with the following:
I would like to draw a coplot and in each panel draw the curve and display
the coefficients of the regression model y~a*x^b.
I thought of running nls(y~a*x^b,...) in panel=function(x,y...){} when
calling coplot. How can I do this?
Alternatively, I could do the regression before graphing with coplot and
just use the panel function to draw the