[R] Legend symbols mixed char and integer

2010-11-27 Thread Mike Prager
the way. Or is there some known work-around for the pdftex bug? Thanks! -- Mike Prager, NC, USA __ R-help@r-project.org 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] Legend symbols mixed char and integer

2010-11-28 Thread Mike Prager
On Sun, 28 Nov 2010 07:54:43 + (GMT), Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On Sat, 27 Nov 2010, Mike Prager wrote: I need to generate a plot with both open and filled circles. It is simple enough, using pch=1 and pch=16. The R pdf graphics output is going into pdftex 1.40.10

Re: [R] How do you change library location ? (in R under windows XP)

2010-04-26 Thread Mike Prager
On Fri, 23 Apr 2010 15:22:45 +0300, Tal Galili tal.gal...@gmail.com wrote: Due to the new R 2.11 release, I want to implement Dirk's suggestion herehttp://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r . So for that I am asking - How can I (permanently) change R's

Re: [R] R and S-Plus: Two programs separated by a common language?

2010-04-26 Thread Mike Prager
On Thu, 22 Apr 2010 12:00:13 -0700 (PDT), Paul Miller pjmiller...@yahoo.com wrote: I was just wondering if anyone could give me some advice about the wisdom or folly of trying to use both [R and S-Plus]. I suspect that trying to use both will give you heartburn. When I switched from S-Plus to

Re: [R] Upgrading R using the global library folder strategy - what do you think about it?

2010-04-26 Thread Mike Prager
I think it makes more sense for most users to have a global library (as you call it), rather than put the library under the current installation. I have been doing that for years, and it saves a lot of trouble. When I have helped people learn R, the need to copy the library when updating is a

Re: [R] how can I use R functions in Fortran 90

2009-12-29 Thread Mike Prager
. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] 4D Plot

2010-05-27 Thread Mike Prager
On Thu, 27 May 2010 10:42:54 +0200, Spitzner, Andrea andrea.spitz...@uba.de wrote: Hello, I need some help with a 4D-Plot. I can't offer a lot of help, other than to note that There is code for a 4D plot at the R graphics gallery (I am the author) and perhaps looking at that might help.

Re: [R] Help for Beginner!!

2007-10-29 Thread Mike Prager
made so far. Also, consider buying or borrowing a copy of Introductory Statistics with R by Peter Dalgaard. It is well written and brief. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA

Re: [R] Reading a file created with Fortran

2008-02-27 Thread Mike Prager
on the data set and making it easier for humans to check the data file more easily. Second, you could look at read.fortran() -- a function that takes a lightly modified Fortran format specification as an argument. That seems even better for your purposes than read.fwf. -- Mike Prager, NOAA, Beaufort

Re: [R] numeric format

2008-02-27 Thread Mike Prager
of print.data.frame() be adopted as the system version, but was politely declined. Rolf-- Clearly, and appropriately, R development is not a democratic process. Still, if a vote were held, I would support your version. I have also needed to suppress row names from time to time. -- Mike Prager, NOAA

Re: [R] Extracting single output data into a vector or matrix

2008-03-27 Thread Mike Prager
Ayman, It is difficult to say without seeing some code, but your output seems to be not a list in the R sense but a collection of vectors, each of length 1. The best way to put the values into a vector probably is to assign them to the elements of the vector during your computations. Mike Prager

Re: [R] background color in scatterplots

2008-03-28 Thread Mike Prager
], vrefs2[i:(i-1)]), c(rep(pdims[3],2), rep(pdims[4],2)), col = cols[i], border = NA) } # Draw the reference lines, points, and box: abline(v = vrefs) points(a, b, lwd = 1.5) box() -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise

Re: [R] ' R ' - General Question (newbie)

2009-07-10 Thread Mike Prager
. You will find that R syntax (and mindset) are quite different from SAS, so using an introductory text will save you time. I think Peter Dalgaard's Introductory Statistics with R is quite a good one, especially if you prefer something in the print (rather than electronic) medium. -- Mike Prager

Re: [R] Entire Organization Switching from SAS to R - Any experience?

2009-07-17 Thread Mike Prager
cases, though we've been able to reduce the number of SAS licenses we need. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r

Re: [R] Larger Fonts for x/y-axis

2008-08-12 Thread Mike Prager
Andreas Tille [EMAIL PROTECTED] wrote: what is the trick to get larger fonts for Graphs to make a good slide for presentations? Generally I use something like cex = 2 in the plot function, as well as lwd = 3 -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal

Re: [R] ignoring zeros or converting to NA

2008-08-12 Thread Mike Prager
] ) - TRUE a [,1] [,2] [,3] [1,] NA NA2 [2,] NA NA2 [3,] NA22 [4,] NA22 -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement

Re: [R] graphsheet

2008-08-18 Thread Mike Prager
and down through the list of plots. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Writing greek letters and subscripts in graph

2008-09-18 Thread Mike Prager
(Concentration of ~alpha[3]) text(2,3, ~ beta[z]) Note the use of ~ to denote an expression, so that the material following the tilde is interpreted as such. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does

Re: [R] migrating data from s-plus to R

2008-09-19 Thread Mike Prager
data objects -- I can't say whether they will do so for specialized ones or not. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R

Re: [R] Return a list

2008-09-26 Thread Mike Prager
intelligible to you when you revisit your code X years later. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing list

Re: [R] Font quality in base graphics

2008-07-15 Thread Mike Prager
font type and font size in base graphics? I have two books on R graphics but this aspect is never treated in detail in any of them. Kind regards, willemf. Any reason not to use PDF or EPS? They are vector graphics formats and will provide better text. -- Mike Prager, NOAA, Beaufort, NC

Re: [R] Change font-face in title

2008-07-22 Thread Mike Prager
, and I am grasping for the underlying principle. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing list

Re: [R] drawing segments through points with pch=1

2008-07-22 Thread Mike Prager
in R graphics, objects are drawn in the order specified. However, the default background of plotting symbols is transparent, so in your case, the order doesn't matter. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does

Re: [R] Change font-face in title

2008-07-23 Thread Mike Prager
Ok, thanks! Gabor Grothendieck [EMAIL PROTECTED] wrote: See ?title where its mentioned that calls are ok and a formula is a call. Actually the first ~ is not needed since its already a formula. On Tue, Jul 22, 2008 at 1:12 PM, Mike Prager [EMAIL PROTECTED] wrote: Gabor Grothendieck

Re: [R] try question

2008-07-29 Thread Mike Prager
the help page for ifelse() for more information. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing list

Re: [R] How to add background color of a 2D chart by quadrant

2008-04-09 Thread Mike Prager
to find it. The thread title was background color in scatterplots. MHP -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r

Re: [R] Adding average into a matplot?

2008-04-10 Thread Mike Prager
help me with this? Take a look at help pages of the following functions: mean, apply, abline. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement

Re: [R] plot data with a colour scale

2008-04-15 Thread Mike Prager
-- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] graphics history

2008-04-21 Thread Mike Prager
using this code in scripts: graphics.off() windows(record = TRUE) .SavedPlots - NULL Not exactly the same thing, but it limits memory use. Are there side effects that could bite me? -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use

Re: [R] Writing list object to a file

2008-04-23 Thread Mike Prager
} ## -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Use of recordPlot

2008-04-28 Thread Mike Prager
plots generated by that script? Or maybe something at the beginning with something else at the end?? -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement

Re: [R] Bug? in summary( ) function base package

2008-04-30 Thread Mike Prager
to account for a simple rounding error. Has anyone else encountered the problem? Is there a workaround? A documented feature of summary() is that it rounds values. In doing so, it may print meaningless digits and thus give the appearance of more precision than is really represented. -- Mike Prager

Re: [R] efficiency profiling?

2008-05-02 Thread Mike Prager
filters for a while. Now, I read the R list through the gmane Usenet interface. It appears to me to be a newsgroup, rather than a huge collection of emails. I find that much easier. See http://gmane.org/ -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented

Re: [R] Lattice + Word: Changing .wmf files to .pdf files

2008-06-05 Thread Mike Prager
and PDF versions to look good, there is no perfect solution. You could try generating the graphics as PNG, which will look good (but not great) in both places. That approach will likely increase file sizes considerably. Hope that helps. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed

Re: [R] limits

2009-05-13 Thread Mike Prager
Uwe Ligges lig...@statistik.tu-dortmund.de wrote: So you want some software that can do symbolic calculations? In that case use other software. R is designed for numerical analyses. In particular, if you are looking for good free software, you might try Maxima. -- Mike Prager, NOAA

Re: [R] replacing zeros by NAs

2009-06-15 Thread Mike Prager
(x) - abs(x) my.tol print(x) -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Packages - a great resource, but hard to find the right one.

2007-11-21 Thread Mike Prager
manual off the shelf or start up an online help file. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing

Re: [R] writing summary() to a text file

2007-11-26 Thread Mike Prager
Federico Calboli [EMAIL PROTECTED] wrote: I would like to output the results of a function into a text file, legible as a such. The function produces a summary quite like: Take a look at the sink() function. Does that do what you need? -- Mike Prager, NOAA, Beaufort, NC * Opinions

Re: [R] Packages - a great resource, but hard to find the right one

2007-11-26 Thread Mike Prager
basing reviews around a specific topic/methodology would be more useful than basing them around a single package. I agree: Such articles would be welcome resources if published either in JSS or in R-News. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented

Re: [R] R graph window

2007-11-27 Thread Mike Prager
, ...) You might also be interested in the savePlot function, well described in the R help files. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement

Re: [R] [OT] putting URLs in Latex

2007-11-28 Thread Mike Prager
Edna Bell [EMAIL PROTECTED] wrote: Hi R Gurus! This is definitely off topic, but I thought I'd try: what is the way to put in url's into a Latex file, please? In future, you might want to post such questions in group comp.text.tex Mike -- Mike Prager, NOAA, Beaufort, NC * Opinions

Re: [R] Rating R Helpers

2007-12-03 Thread Mike Prager
term, while continuing to improve and maintain high standards. We are rather early in the history of free software development to know the answer. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA

Re: [R] Maximum number of pasted 'code' lines?

2008-10-14 Thread Mike Prager
and half. I thought if I could insert it all and leave it for that long that would be better time management. I am still waiting for 19,000 paste to process. Any thoughts or suggestions? Write your code in a text editor and include it with the source function. -- Mike Prager, NOAA, Beaufort, NC

Re: [R] IWLS vs direct ML estimation

2008-11-04 Thread Mike Prager
the following paper: Bradley, E. L. 1973. The equivalence of maximum likelihood and weighted least squares estimates in the exponential family. J. Am. Stat. Assn. 68: 199. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does

Re: [R] IWLS vs direct ML estimation

2008-11-04 Thread Mike Prager
sandsky [EMAIL PROTECTED] wrote: I think that IWLS provides the computational flexibility. Because when there exists no analytical solution, IWLS makes it possible to solve via the numerical solution. Do you have any idea for this? My impression is the same as yours. M.H.P.

[R] Update packages error message

2008-11-14 Thread Mike Prager
and Settings\mike.prager\Local Settings\Temp\RtmpcM9EGr\downloaded_packages updating HTML package descriptions Error in .install.winbinary(pkgs = pkgs, lib = lib, contriburl = contriburl, : unable to create temporary directory '4xlhúy  $€ ð¹? R-utils' -- Mike Prager, NOAA, Beaufort, NC * Opinions

Re: [R] 3D or 4D plot

2009-03-05 Thread Mike Prager
/graphiques/RGraphGallery.php?graph=90 It seems to be quite close to what you're looking for. Mike -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement

Re: [R] Replace NaN with zero

2008-11-25 Thread Mike Prager
, as in is.na(tmp2[mask]) - TRUE HTH -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing list https

Re: [R] Replace NaN with zero

2008-11-25 Thread Mike Prager
Mike Prager [EMAIL PROTECTED] wrote: The function is.nan() does not operate like is.na(). One could consider that a design deficiency in R. I meant to write, design inconsistency. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use

Re: [R] optimization problem

2008-12-01 Thread Mike Prager
or model problem that needs to be addressed. For example, the solution may be poorly defined by the data, or the model may be specified with confounded parameters. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does

Re: [R] optimization problem

2008-12-02 Thread Mike Prager
, but I am hoping for something more recent and detailed. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-project.org mailing

Re: [R] optimization problem (optim vs. nlminb)

2008-12-02 Thread Mike Prager
is sensitive to starting values, I would still advise solving the problem a number of times to see if a clear minimum solution emerges. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement

Re: [R] Make installed packages available to new R version

2008-12-12 Thread Mike Prager
-installation with each new version of R. It's still necessary to run update.packages() periodically -- such as after installing a new R version -- to keep the installed packages current. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use

[R] Plotmath with values?

2008-12-31 Thread Mike Prager
a parser nor taken a course in compilers -- what is needed is the nonexistent function value usable in plotmath expressions to produce the value of its argument, as plot(1:3, 1:3, main = ~ a == value(aa)) How can this be done? THANKS! -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed

Re: [R] Plotmath with values?

2008-12-31 Thread Mike Prager
Charles C. Berry cbe...@tajo.ucsd.edu wrote: On Wed, 31 Dec 2008, Mike Prager wrote: I hope to use the plotmath facility to print titles that mix math and values of R variables. [...] plot(1:3, 1:3, main = bquote(a == .(aa))) You have to follow a couple of 'See Also' links

Re: [R] names help?

2008-12-31 Thread Mike Prager
d e 1 2 3 4 5 -End R session- Does that help? -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R

Re: [R] Generating GUI for r-scripts

2009-01-08 Thread Mike Prager
suitable for my tasks. you might take a look at package tcltk, which provides GUI tools by binding to Tcl/Tk. It could meet your requirements. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA

Re: [R] Programming Question (setting ylim generally)

2009-01-09 Thread Mike Prager
stephen sefick ssef...@gmail.com wrote: low - min(a*0.98)-(min(a)*0.04) high - max(a*1.02)+(max(a)*0.04) plot(a, ylim=c(low, high)) Unless I am misreading your example, this can be done a little more compactly as: plot(a, ylim = range(a * 0.94, a * 1.06)) -- Mike Prager, NOAA, Beaufort, NC

Re: [R] A slight trap in read.table/read.csv.

2010-03-08 Thread Mike Prager
-prone, and possibly more. The only immediate solution to this accretion of overly clever behavior would be for someone to write new functions (say, Read.csv) that didn't do all those conversions behind the scenes. I'm not about to do that. Are you? Best of luck! -- Mike Prager, NOAA, Beaufort, NC

Re: [R] Page width figures in Latex

2010-03-28 Thread Mike Prager
On Mon, 29 Mar 2010 12:21:40 +1100, Jim Lemon j...@bitwrit.com.au wrote: bRotheRs sisteRs, I am once again attempting to learn enough Latex voodoo to get something done, and failing comically. The document RJAuthorguide.pdf mentions that one can get page width figures through the use of the

Re: [R] LaTeX, MiKTeX, LyX: A Guide for the Perplexed

2010-12-08 Thread Mike Prager
On Tue, 7 Dec 2010 21:24:27 -0700, Greg Snow greg.s...@imail.org wrote: Sharing LaTeX documents with people using word processors only is no more difficult than giving driving directions to someone who is blindfolded . . . . If you just need basic input or approval then give them a paper