Re: [R] Fitting exponential curve to data points

2007-07-24 Thread Karl Ove Hufthammer
, 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

Re: [R] Different axis limits for each facet in ggplot2

2007-07-17 Thread Karl Ove Hufthammer
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

[R] Different axis limits for each facet in ggplot2

2007-07-16 Thread Karl Ove Hufthammer
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

Re: [R] looking at a function's code

2007-07-16 Thread Karl Ove Hufthammer
, 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

Re: [R] Choosing the number of colour breaks in ggplot2

2007-07-15 Thread 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.

[R] Choosing the number of colour breaks in ggplot2

2007-07-13 Thread Karl Ove Hufthammer
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

Re: [R] R² in a non-linear regresion analisys

2007-05-07 Thread 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

Re: [R] Embedding Fonts in eps Files - Required by Publisher

2007-04-13 Thread Karl Ove Hufthammer
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

Re: [R] generating lognormal variables with given correlation

2007-03-23 Thread Karl Ove Hufthammer
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

Re: [R] lattice cloud and conditional axis limits

2006-09-13 Thread Karl Ove Hufthammer
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

[R] lattice cloud and conditional axis limits

2006-09-12 Thread Karl Ove Hufthammer
, 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

Re: [R] xyplot tick marks and line thickness

2006-08-25 Thread Karl Ove Hufthammer
 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

Re: [R] Great R documentation

2006-07-31 Thread Karl Ove Hufthammer
* 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

Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-26 Thread Karl Ove Hufthammer
: 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

Re: [R] Overlaying 2D kernel density plots on scatterplot matrix

2006-06-26 Thread Karl Ove Hufthammer
)), 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

Re: [R] latex function with lm

2006-06-21 Thread 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

Re: [R] latex function with lm

2006-06-21 Thread Karl Ove Hufthammer
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

Re: [R] Regression line limited by the rage of values

2006-05-25 Thread Karl Ove Hufthammer
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

Re: [R] Regression through the origin

2006-05-23 Thread 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

Re: [R] Conditional contour plots for estimated density functions using Lattice

2006-05-15 Thread Karl Ove Hufthammer
(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

[R] Conditional contour plots for estimated density functions using Lattice

2006-05-12 Thread Karl Ove Hufthammer
) 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

Re: [R] R and ViM

2006-04-19 Thread Karl Ove Hufthammer
. 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

Re: [R] A somewhat off the line question to a log normal distrib

2004-12-02 Thread Karl Ove Hufthammer
=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