Displaying 20 results from an estimated 1000 matches similar to: "axis and tick widths decoupled (especially in rugs!)"
2008 Apr 02
1
Two datasets on one histogram
I have two .txt files with lists of generated data I want to plot them on the same histogram. I'm aware of the histbackback function, but that is not really what I am looking for, I just want them on the same histogram but so they are still grouped separately (different colours, different norm curves etc). Does anyone know how to do this? Thank you.
[[alternative HTML version deleted]]
2007 Jul 17
2
multiple rugs on a single plot
Hi
I could only find some discussion on this wrt lattice graphics (which I'm
not using). Apologies if I'm missing something obvious.
I'd like to produce 3 rug plots under a kernel density plot for a
population. The population is subdivided into 3 subpopulations, which I'd
like the rug plots to highlight. Naturally, when I do 3 rug plots, they all
plot over each other.
2010 Nov 24
2
Is there an equivalent to predict(..., type="linear") of a Proportional hazard model for a Cox model instead?
Hi all,
Is there an equivalent to predict(...,type="linear") of a Proportional hazard
model for a Cox model instead?
For example, the Figure 13.12 in MASS (p384) is produced by:
(aids.ps <- survreg(Surv(survtime + 0.9, status) ~ state + T.categ +
pspline(age, df=6), data = Aidsp))
zz <- predict(aids.ps, data.frame(state = factor(rep("NSW", 83), levels =
2009 Mar 30
1
How do I add a rug to a 3d 'persp' plot?
Hi all,
I have a (hopefully quick) question. I've got a fascinating set of fitted
surfaces in three dimensions corresponding to local linear multiple
regressions. I'd like to add rugs to the X and Y axes (corresponding to my
independent variables) in order to get a sense for how many data points I'm
working with to graph various portions of the surfaces. The trouble is, I
can't
2013 Jul 17
1
Open SSH configuration query
Hi,
I have downloaded openssh(http://www.openssh.com/) on my Windows host.
Just wanted to know if openssh allows executing a batch script on Windows host.
Batch script contains mapping of shares which is required for my scripts.
My command run from hpux:
$ ssh <windows server> myscript
The myscript requires shares to be mapped on login via
2010 Jan 18
2
function to set log(0)=0 not working on tables or vectors
There must be a very basic thing I am not getting...
I'm working with some entropy functions and the convention is to use
log(0)=0.
So I wrote a function:
llog<-function(x){
if (x ==0) 0 else log(x)
}
which seems to work fine for individual numbers e.g.
>llog(0/2)
[1] 0
but if I try whole vectors or tables:
p<-c(4,3,1,0)
q<-c(2,2,2,2)
llog(p/q)
I get this:
[1] 0.6931472
2009 Jun 08
2
ridiculous behaviour printing to eps: labels all messed up!
OK, this is really weird!
here's an example code:
t1<-c(1,2,3,4)
t2<-c(4,2,4,2)
plot(t1~t2, xlab="exp1", ylab="exp2")
dev.copy2eps(file="test.eps")
that all seems fine...
until you look at the eps file created, where for some weird reason, if you
scroll down to the end, the code reads:
/Font1 findfont 12 s
0 setgray
214.02 18.72 (e) 0 ta
-0.360 (xp1) tb
2010 Aug 17
2
plotting functions of chi square
Hi! This is going to be a real newbie question, but I can't figure it out.
I'm trying to plot densities of various functions of chi-square. A simple
chi-square plot I can do with dchisq(). But e.g. chi.sq/degrees of freedom I
only know how to do using density(rchisq()/df). For example:
plot(1, type="n", xlab="", ylab="", xlim=c(0,2), ylim=c(0,7))
for (i
2007 Sep 04
1
rug() colors
Hello,
I have a simple question on rug().
Currently there is only one color possible for the rug.
Is it possible to plot a the rug with different colors, for each rug item ?
Thx.
Bjoern
2010 Dec 15
1
Problems drawing a colored 'rug' in the Lattice 'densityplot'
Hi All,
I'm trying to add a 'rug' representation of my data to a plot created
with densityplot(). While I can do this in the simple case, I can't do
it properly when I include the "groups" argument. I have an example
below. I am running a reasonably new version of R.
print(sessionInfo())
R version 2.12.0 Patched (2010-11-07 r53537)
Platform: i686-pc-linux-gnu
2002 Apr 08
2
user coordinates and rug plots in lattice graphics
Dear R list members,
I'd like to produce rug plots at the bottom of panels in a trellis display
(using the lattice package), but par("usr") doesn't return user coordinates
for panels, and consequently rug fails, as the following example (suggested
to me by Georges Monette) illustrates:
> x <- rnorm(50)
> y <- rnorm(50)
> f <-
2011 Mar 10
2
identical values not so identical? newbie help please!
Hi there!
I'm not sure I can create a minimal example of my problem, so I'm linking to
a minimal .RData file that has only two objects: obs and exp, each is a 6x9
matrix. http://dl.dropbox.com/u/10364753/test.RData link to dropbox file
(I hope this is acceptable mailing list etiquette!)
Here's what happens:
> obs[1, 1]
[1] 118
> exp[1, 1]
[1] 118
> obs[1, 1]-exp[1, 1]
[1]
2007 Oct 27
1
Unwanted axis labels when rug() has POSIXlt argument (PR#10380)
rug() may add integer axis labels when called with a POSIXlt object
as argument.
dtimes <- c("09/29/2007 12:54", "09/30/2007 00:14", "10/01/2007
00:14",
"10/02/2007 00:14", "10/03/2007 00:14", "10/04/2007
00:14",
"10/05/2007 00:14", "10/06/2007 00:14", "10/07/2007
2004 Jun 04
1
hist, lines, rug
Hello,
I'm trying to plot a historgram with a density plot superimposed:
hist(x, seq(-1, 1, by = 0.1), prob = T, col = "blue")
lines(density(x, bw = 0.1))
rug(x)
I don't want to add rug(x) but the histogram will not be plotted unless
rug(x) is there. It does not work if the "hist" line alone is present.
Can you help?
Thanks,
Kim
[[alternative HTML version
2001 Nov 29
1
rug(x) clip warning incorrect if par("xlog")==TRUE (PR#1188)
To wit:
> plot(1:2,1:2,log="x")
> rug(1:2) # should not warn
Warning message:
some values will be clipped in: rug(1:2)
> plot(1:2,1:2,log="x")
> rug(c(0,.1,.2)) # should warn, but does not
>
I believe this fixes the problem:
% diff -c /tmp/orig.rug.R /tmp/cberry.rug.R
*** /tmp/orig.rug.R Thu Nov 29 12:59:00 2001
--- /tmp/cberry.rug.R Thu Nov 29
2009 Feb 18
2
indicator or deviation contrasts in log-linear modelling
I am fairly new to log-linear modelling, so as opposed to trying to fit
modells, I am still trying to figure out how it actually works - hence I am
looking at the interpretation of parameters. Now it seems most people skip
this part and go directly to measuring model fit, so I am finding very few
references to actual parameters, and am of course clear on the fact that
their choice is irelevant for
2012 Sep 24
1
[LLVMdev] Decoupled software pipelining (DSWP) in LLVM
Hi! I'm writing my own project in LLVM and I came across a document
describing Decoupled software pipelining algorithm written in LLVM by The
Liberty Research Group for their VELOCITY C++ compiler:
http://liberty.princeton.edu/Research/DSWP/
http://liberty.princeton.edu/Publications/micro38_dswp.pdf
and some of spectacular results:
http://liberty.princeton.edu/videos/gimp.php
2009 Nov 10
3
Error: cannot allocate vector of size...
I'm trying to import a table into R the file is about 700MB. Here's my first
try:
> DD<-read.table("01uklicsam-20070301.dat",header=TRUE)
Error: cannot allocate vector of size 15.6 Mb
In addition: Warning messages:
1: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
Reached total allocation of 1535Mb: see help(memory.size)
2: In scan(file, what,
2002 Apr 18
2
Changing tick mark labels
Hello,
Can anyone help me out with this problem?
After performing logistic regressions and testing the significance with
likelihood ratios, I have plotted the results using "termplot". I am
wondering, how to get the names of my variables to appear on the x-axis
rather than ascending numbers?
I have used:
termplot(fm, se=T, axes=FALSE, col.se="black")
axis(1, 1:4,
2011 Dec 13
1
UseR! 2011 slides and videos - now online
Hello dear R community,
Recently, the wonderful
people<http://www.warwick.ac.uk/statsdept/useR-2011/index.html#About>behind
useR!2011 made sure to nudge the speakers to send in their slides
from the conference, and updated the conference's website with links to the
slides (and videos)<http://www.warwick.ac.uk/statsdept/user-2011/schedule/index.html>of
the talks.
Since the links