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 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 version or pdf file and

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 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 i

[R] Legend symbols mixed char and integer

2010-11-27 Thread Mike Prager
x27;t found 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/pos

Re: [R] 4D Plot

2010-05-27 Thread Mike Prager
On Thu, 27 May 2010 10:42:54 +0200, "Spitzner, Andrea" 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. http://addictedtor.free.

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 reg

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 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 R, the most significa

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 wrote: >Due to the new R 2.11 release, I want to implement Dirk's suggestion >here >. > >So for that I am asking - How can I (permanently) change R's library path?

Re: [R] Page width figures in Latex

2010-03-28 Thread Mike Prager
On Mon, 29 Mar 2010 12:21:40 +1100, Jim Lemon 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 >"figure*" or "

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

2010-03-08 Thread Mike Prager
; was removed as an assignment operator, and the world did not crumble. The use of T and F is no less error-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

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

2009-12-29 Thread Mike Prager
uniform and normal. If you are interested in pure Fortran code for the problem, you could look at routine G01FCF here: http://gams.nist.gov/search.cgi?Pattern=chi+square&Boolean=AND&Match=Full&Limit=100&Show=Yes GAMS (the Guide to Available Mathematical Software) has a lot of g

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

2009-07-17 Thread Mike Prager
do some processing with SAS in those 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. ___

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

2009-07-10 Thread Mike Prager
user of R. Gabor has given a useful suggestion: looking online. 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 p

Re: [R] replacing zeros by NAs

2009-06-15 Thread Mike Prager
rint(x) is.na(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 mailin

Re: [R] limits

2009-05-13 Thread Mike Prager
Uwe Ligges 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, Beaufort, NC * Opinions exp

Re: [R] 3D or 4D plot

2009-03-05 Thread Mike Prager
ree.fr/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] Programming Question (setting ylim generally)

2009-01-09 Thread Mike Prager
"stephen sefick" 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 P

Re: [R] Generating GUI for r-scripts

2009-01-08 Thread Mike Prager
le 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 en

Re: [R] names help?

2008-12-31 Thread Mike Prager
3 4 5 > names(a)[which(names(a)=="b")] <- "Brad" > a a Brad Kevin d e 1 2 3 4 5 -End R session- Does that help? -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed

Re: [R] Plotmath with values?

2008-12-31 Thread Mike Prager
"Charles C. Berry" 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 f

[R] Plotmath with values?

2008-12-31 Thread Mike Prager
om a user's point of view -- one who has never written 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 ca

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

2008-12-12 Thread Mike Prager
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 of

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

2008-12-02 Thread Mike Prager
der "nlminb" instead of "optim". Because nonlinear optimization 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 rep

Re: [R] optimization problem

2008-12-02 Thread Mike Prager
in core R)? What are the different intended applications, and when would each be preferred? There is some helpful material in MASS 4, but I am hoping for something more recent and detailed. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any

Re: [R] optimization problem

2008-12-01 Thread Mike Prager
mode, there is a data 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 o

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 repres

Re: [R] Replace NaN with zero

2008-11-25 Thread Mike Prager
otting, I would not use 0 as you propose, as that will plot a point at zero. It is usually better to use NA, 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

[R] Update packages error message

2008-11-14 Thread Mike Prager
ed packages are in C:\Documents 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  $€ ð¹?

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. __

Re: [R] IWLS vs direct ML estimation

2008-11-04 Thread Mike Prager
t; find the indirect MLE? You may want to read 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

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

2008-10-14 Thread Mike Prager
chunks > it took about an hour 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 "s

Re: [R] Return a list

2008-09-26 Thread Mike Prager
p! I don't have a good answer for your question, but I do encourage you to choose a method that will be readily 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 trad

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

2008-09-19 Thread Mike Prager
e by either S or R. At least, they do so for many common 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

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

2008-09-18 Thread Mike Prager
f example: plot(1:10, 1:10) title("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 represen

Re: [R] graphsheet

2008-08-18 Thread Mike Prager
but will allow you to page 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-proj

Re: [R] data types in R

2008-08-15 Thread Mike Prager
seq() with fractions. In other cases, it can be helpful to use the length.out= argument to seq(), rather than the to= argument. HTH -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitu

Re: [R] ignoring zeros or converting to NA

2008-08-12 Thread Mike Prager
22 > # change zero to NA > is.na(a[a==0] ) <- TRUE > a [,1] [,2] [,3] [1,] NA NA2 [2,] NA NA 2 [3,] NA22 [4,] NA22 -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use

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

Re: [R] try question

2008-07-29 Thread Mike Prager
NA [17] -0.81934141 -1.37204269 NA NA [21] NA 0.32918453 -0.40657152 -0.43540794 [25] NA > See the help page for ifelse() for more information. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * An

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 <[E

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

2008-07-22 Thread Mike Prager
he "bg" parameter to set the fill color. That lets you set the background color of the circle so that it will conceal the line segment. In general in R graphics, objects are drawn in the order specified. However, the default background of plotting symbols is transparent, so in your cas

Re: [R] Change font-face in title

2008-07-22 Thread Mike Prager
e the rest of the text to be parsed as an expression? This looks extremely useful, 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. __

Re: [R] Font quality in base graphics

2008-07-15 Thread Mike Prager
f where > to read about precise control over 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 bette

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

2008-06-05 Thread Mike Prager
quite workable, but not suitable for final version. If you want both Word 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

Re: [R] Nonlinear regression

2008-05-21 Thread Mike Prager
[EMAIL PROTECTED] wrote: > Could someone help me on the following: > SAS has DUD (Does not Use Derivatives) for nonlinear regression. > > Does "R" has a similar capability? > nls() -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represe

Re: [R] efficiency & profiling?

2008-05-02 Thread Mike Prager
s) ... :-) I used 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 a

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

2008-04-30 Thread Mike Prager
s give the appearance of more precision than is really represented. -- 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.or

Re: [R] Use of recordPlot

2008-04-28 Thread Mike Prager
imple command or series of commands to add to the script to > enable scrolling through all 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

Re: [R] Writing list object to a file

2008-04-23 Thread Mike Prager
# cancel redirection options(width = tmp.wid) # restore linewidth return(invisible(NULL)) # return (nothing) from function } ## -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * An

Re: [R] graphics history

2008-04-21 Thread Mike Prager
ut this isn't urgent enough to have prodded me into writing > it before now. A finite size would be nice. I've been 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 th

Re: [R] plot data with a colour scale

2008-04-15 Thread Mike Prager
require(lattice) ?levelplot -- 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/ma

Re: [R] Adding average into a matplot?

2008-04-10 Thread Mike Prager
all simulations. Can anyone 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 constitu

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

2008-04-09 Thread Mike Prager
asy to modify my example to fit your question. If you search the group archives, you should be able to find it. The thread title was "background color in scatterplots". MHP -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are perso

Re: [R] background color in scatterplots

2008-03-28 Thread Mike Prager
ngth(vrefs2), s = 0.15) # Add the colors to the plot: for (i in 2:length(vrefs2)){ polygon(c(vrefs2[(i-1):i], 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()

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] numeric format

2008-02-27 Thread Mike Prager
to an R Core person that my version 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 r

Re: [R] Reading a file created with Fortran

2008-02-27 Thread Mike Prager
d serve two purposes: making read.table() work 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

Re: [R] Rating R Helpers

2007-12-03 Thread Mike Prager
essional use of LaTeX. At its root, this is a rather deep question: how open-source, largely volunteer-developed software can survive over the long term, while continuing to improve and maintain high standards. We are rather early in the history of free software development to know the answer.

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 Mik

Re: [R] R graph window

2007-11-27 Thread Mike Prager
t;- NULL # Deletes any existing plot history windows(record = TRUE, ...) 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

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

2007-11-26 Thread Mike Prager
viewed only a single package. I think 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 * Opini

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,

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

2007-11-21 Thread Mike Prager
tax (and other) help by Googling than to pull the reference 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. __

Re: [R] Help for Beginner!!

2007-10-29 Thread Mike Prager
re. I agree with the suggestions 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 traden

Re: [R] text formatting

2007-09-21 Thread Mike Prager
stephen bond <[EMAIL PROTECTED]> wrote: > Does R have any functions for C/Fortran style text formatting when a > number needs to be output right-justified in a fixed length field? > > say '%2d %3d %5.3f' ?formatC -- Mike Prager, NOAA, Beaufort, NC * Opinions ex