[R] Fit elipse to xy scatter

2011-07-23 Thread DrCJones
Hi, I know there is a package 'elipse' available but I'm not sure how to use it for my specific implementation. What I would like to do is fit an elipse to two lines of identity (at right angles to each other), as indicated in the following figure:

Re: [R] multiple plots in single frame: 2 upper, 1 lower

2011-07-21 Thread DrCJones
Layout did it! Thanks guys :) -- View this message in context: http://r.789695.n4.nabble.com/multiple-plots-in-single-frame-2-upper-1-lower-tp3679574p3683144.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] multiple plots in single frame: 2 upper, 1 lower

2011-07-20 Thread DrCJones
Hi, par(mfrow = c(2,2)) will create a 2x2 window that I can use to plot 4 diferent figures in: [plot1 plot2] [plot3 plot4] But how can do 3 so that the bottom spans the width of the upper two: [plot1 plot1] [p l o t 3] Is this possible in R? -- View this message in context:

[R] scatterplot with filled circles

2010-11-16 Thread DrCJones
for a simple scatterplot: plot(X ~ Y, type = 'p', col = 'red') this produces red-edged circles, but I want to fill in the circles. can this be done? I checked '? plot' already but couldn't find what I was looking for. cheers -- View this message in context:

Re: [R] scatterplot with filled circles

2010-11-16 Thread DrCJones
Fantastic thanks! -- View this message in context: http://r.789695.n4.nabble.com/scatterplot-with-filled-circles-tp3044690p3044772.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] scatterplot with filled circles

2010-11-16 Thread DrCJones
Are you sure you want X~Y and not Y~X? You are right of course - sorry that was just a typo ;) -- View this message in context: http://r.789695.n4.nabble.com/scatterplot-with-filled-circles-tp3044690p3044776.html Sent from the R help mailing list archive at Nabble.com.

[R] superscript characters in title with '+'

2010-10-22 Thread DrCJones
Hi, How can I get the '2+' into superscript in the following title: '[Ca2+]i onsets' I tried the command below, but it doesn't work. What am I missing? hist(X, main=expression(([Ca*]i^2+) 'onsets'), xlab = 'sec') -- View this message in context:

Re: [R] superscript characters in title with '+'

2010-10-22 Thread DrCJones
Hi, Thanks for all of your replies! David, a slightly modified version of what you gave did the trick: hist(X,main = expression([*Ca**^paste(2,+)*]i~'onsets')) But I prefer the way '2+' is italicized in the solution Dennis gave: hist(X, main = bquote('[Ca'^'2+'*']i'~'onsets'), xlab =

Re: [R] superscript characters in title with '+'

2010-10-22 Thread DrCJones
Er, I don't see any italics in the output or implied by the expression. Freudian slip... ...font superscripting is what I meant All is perfectly clear now. Thanks again! -- View this message in context:

Re: [R] Saving/loading custom R scripts

2010-09-13 Thread DrCJones
I'm still relatively new to R, so I tried the first of you two solutions: .First - function(){ source(Friedman-Test-with-Post-Hoc.r.txt) } Thanks very much for that, it works perfectly Cheers -- View this message in context:

[R] Saving/loading custom R scripts

2010-09-08 Thread DrCJones
Hi, How does R automatically load functions so that they are available from the workspace? Is it anything like Matlab - you just specify a directory path and it finds it? The reason I ask is because I found a really nice script that I would like to use on a regular basis, and it would be nice

[R] Error: could not find function ad.test

2010-09-02 Thread DrCJones
Hi, I'm trying to run an anderson-darling test for normality on a given variable 'Y': ad.test(Y) I think I need the 'nortest' package, but since it does not appear in any of the Ubuntu repositories for 2.10.1, I am wondering if it goes by the name of something else now? Thanks -- View this