, and
that may be instructive.
FYI, in case you’re not used to DOIs: you can resolve the above DOIs to
fulltext URLs using http://dx.doi.org/
--
Karl Ove Hufthammer
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
hadley wickham:
Is it possible to have different axis limit for each facet in a ggplot2
plot? Here is an example:
Not yet, although it is on the to do list.
Thanks for the answer. I’ll be looking forward to the next version(s)
then. :)
--
Karl Ove Huftammer
that
+ scale_y_continuous(limits=c(NA,NA))
would work, but this sets the 'y' axis to cover the range of 'y' and 'z'
*combined* (which is very sensible as a default, but not what I would
prefer here).
--
Karl Ove Hufthammer
__
R-help@stat.math.ethz.ch mailing list
https
, ordinarily you should be able to write 'head.data.frame' to see the
code for this function, but, since it is starred, '*', this doesn't work.
The easiest way to get hold of it is using 'getAnywhere':
getAnywhere(head.data.frame)
--
Karl Ove Hufthammer
.
--
Karl Ove Hufthammer
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
ggplot(dat, mapping=aes(x=x, y=y, fill=z)) +
geom_tile() + scale_fill_gradient2()
-
The image shows many (61) colours, but only 5 of them are shown in the
legend. How do I change the legend to show, say, 10 colours?
--
Karl Ove Hufthammer
48, no. 2, pages 113–117.
http://dx.doi.org/10.2307/2684259
Kvålseth T.O. (1985). ‘Cautionary note about R²’. The American
Statistician, volume 39, no. 4, pages 279–285.
http://dx.doi.org/10.2307/2683704
--
Karl Ove Hufthammer
__
R-help
the ps2eps tool very useful http://www.tm.uka.de/~bless/ps2eps;.
I usually use the command line options 'ps2eps --size b3 --ignoreBB'.
--
Karl Ove Hufthammer
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
of dependence rarely
makes much sense unless the association between the variables is linear.
--
Karl Ove Hufthammer
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org
Ove Hufthammer
E-mail and Jabber: [EMAIL PROTECTED]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self
, it does not. Any ideas how I can make it work?
--
Karl Ove Hufthammer
E-mail and Jabber: [EMAIL PROTECTED]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting
itself??
I find that
library(Hmisc)
setps(filename) # Or setpdf. You might also want to add 'color=TRUE'.
... plotting commands ...
dev.off()
usually gives much better-looking plots, and with thicker lines.
--
Karl Ove Hufthammer
E-mail and Jabber: [EMAIL PROTECTED
* easy to miss
otherwise (and many people don’t know that demos or even vignettes exist).
--
Karl Ove Hufthammer
E-mail and Jabber: [EMAIL PROTECTED]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
: The grey background used by ggplot does look nice;
the one used by earlier versions of lattice did not. All IMHO, of course.
--
Karl Ove Hufthammer
E-mail and Jabber: [EMAIL PROTECTED]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman
)),
contour=TRUE, region=FALSE)
panel.xyplot(x,y)
}
)
¹ Which is basically Richard M. Heiberger’s solution to a similar
query I had on this list earlier about a month ago:
http://tolstoy.newcastle.edu.au/R/help/06/05/27184.html
--
Karl Ove Hufthammer
for printing
the table part of summary.lm:
library(Hmisc)
library(xtable)
latex(xtable(l), booktabs=TRUE, digits=2)
--
Karl Ove Hufthammer
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
loved Excel-type 12
decimals. You may try it as starter.
http://www.menne-biomed.de/download
I believe that should be http://www.menne-biomed.de/download/download.html
--
Karl Ove Hufthammer
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch
with a large value of 'span' (which basically makes is equal to
the ordinary least-squares regression line). Here's a simple example:
library(lattice)
data(iris)
xyplot(Petal.Length~Petal.Width,
groups=Species, type=c(p,smooth), span=100, data=iris)
--
Karl Ove Hufthammer
(l,col=red)
--
Karl Ove Hufthammer
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
(cest.gr)
panel.contourplot(cest.gr.lat$x, cest.gr.lat$y, cest.gr.lat$z,
subscripts=seq(nrow(cest.gr.lat)),
pretty=pretty, region=region, contour=TRUE, ...)
}
--
Karl Ove Hufthammer
__
R-help@stat.math.ethz.ch mailing
) or perhaps by
using scales=free. But surely there must be a smarter and more elegant
way of drawing conditional contour plots using kernel density estimates?
--
Karl Ove Hufthammer
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman
. Just type 'M-x viper-mode', and you'll have access
to almost all your favourite Vim commands and keybindings. It works very
well.
--
Karl Ove Hufthammer
E-mail and Jabber: [EMAIL PROTECTED]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch
=wheat: The default colour used by 'truehist' is
really eye-blinding ... :) )
--
Regards,
Karl Ove Hufthammer
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting
23 matches
Mail list logo