Re: [R] What is the ggplot analog of the axis() function?

2020-02-16 Thread p_connolly
would use. This is a (very) broad question, if you have doubts in something more specific, say so. Hope this helps, Rui Barradas Às 20:35 de 16/02/20, p_connolly escreveu: Using base R graphics I can customize the position of the tick marks and what text to label them by using the axis function

[R] What is the ggplot analog of the axis() function?

2020-02-16 Thread p_connolly
Using base R graphics I can customize the position of the tick marks and what text to label them by using the axis function and adjusting the `at` and `labels` parameters respectively. What theme setting do I adjust using ggplot2 graphics to achieve a similar result? TIA Patrick

Re: [R] saveRDS() and readRDS() Why? [solved, pretty much anyway)

2018-11-13 Thread p_connolly
] On Mon, Nov 12, 2018 at 7:10 PM, p_connolly wrote: [...] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] saveRDS() and readRDS() Why? [solved, pretty much anyway)

2018-11-12 Thread p_connolly
0xba, 0x84, 0x9f, 0x85, 0x85, 0x85, 0xa7, 0x21, 0x6e, 0xff, 0x07, 0x03, 0xf3, 0xcf, 0x7e, 0xc7, 0x11, 0x00, 0x00)) The issue is evidently with the shared folder. I've been doing that (sharing the folder) for years and never encountered a problem. Bill Dunlap TIBCO Software wdunlap tibco.com [1

Re: [R] saveRDS() and readRDS() Why? [solved, pretty much anyway)

2018-11-12 Thread p_connolly
On 2018-11-12 22:49, peter dalgaard wrote: Er, where, what, how? I can't reproduce that, at least not on 3.5.1 on MacOS: x <- airquality saveRDS(x, file = "x.rds") x <- NULL x <- readRDS(file = "x.rds") x Ozone Solar.R Wind Temp Month Day 1 41 190 7.4 67 5 1 2 36

Re: [R] Why can't I make use of tcltk in this installation?

2018-09-10 Thread p_connolly
Hello Albrecht. I didn't specify those paths on the 3 machines that have tcltk available. It appears that those files are not on the machine in question and that is the reason for my problem. But if they are, ./configure finds them itself. I'm not at the machine that has the issue, but I

[R] > Understanding strip.default & strip.custom

2016-06-27 Thread p_connolly
I'm having difficulty following the help for those functions. My plot has a single conditioning factor with 12 levels. My factor.levels in a call to strip.default looks like this: factor.levels = expression(Needles~ "::"~alpha -pinene, Stems~ "::"~alpha -pinene,

[R] How to read ./configure messages

2016-02-01 Thread p_connolly
I've installed R from the tgz file since about R-0.9.x following the INSTALL instructions and have always succeeded using rpm-based OSes. With each new OS, that involved installing various additional packages before the configure script would complete. Figuring out which packages were required

Re: [R] Boundaries and deldir

2015-02-02 Thread p_connolly
On 2015-02-03 00:46, Rolf Turner wrote: [...] The deldir function creates a Delaunay triangulation/Dirichlet tessellation inside a rectangular window (denoted by rw in the argument list). This is the only boundary invoked or involved. The function plot.tile.list() will *plot* the Dirichlet

[R] Boundaries and deldir

2015-02-01 Thread p_connolly
Just what is meant by dummy points as referred to by the help for the deldir() function? I understood they indicated the boundary beyond which triangulation would cease. I thought I would need the x/y elements (as described in the help file at the end of the description of the use of the dpl

Re: [R] RWeka: how to pass arguments to BayesNet for specific search method

2014-06-18 Thread p_connolly
My suggestion is not entirely satisfactory, but it's got me out of a few jams. When I can't get the RWeka syntax to work, I resort to using direct weka code in a system call. One such example looks like this and will make sense if you know how Weka does things. system(java

[R] Character type and size using spatstats

2014-05-14 Thread p_connolly
The spatstat package has hundreds of useful functions but I'm having trouble understanding the intricate ways it does things. I've read lots of Rspatialcourse_CMIS_PDF Standard.pdf from here: http://www.csiro.au/resources/pf16h but can't find what I need to know. I'm particularly interested

Re: [R] multicore and mclapply problem in calculation server

2013-12-19 Thread p_connolly
On Wed, 18-Dec-2013 at 09:28AM +0100, Juan Antonio Balbuena wrote: | |Hello |I am using package multicore for parallel computing in a Altix UltraViolet |1000 server with 64 CPUs and 960 GB of RAM memory. Access is managed by |means of a SGE queue system. This is the first time

Re: [R] Append text to panels of lattice::barchart()

2013-11-26 Thread p_connolly
On 2013-11-27 10:07, Tim Sippel wrote: I could use a little help writing a panel function to append text to each panel of a lattice::barchart(). Below is a modified version of the barley dataset to illustrate. data(barley) # add a new variable called samp.size

Re: [R] using a variable for a column name in a formula

2013-10-13 Thread p_connolly
On 2013-10-14 10:04, David Epstein wrote: lm(height ~ ., data=X) works fine. However nnn - height ; lm(nnn ~ . ,data=X) fails How do I write such a formula, which depends on the value of a string variable like nnn above? as.formula() with paste() could work, but from where you are now, try

[R] Collecting children from mclapply

2013-08-15 Thread p_connolly
I have an 8 core machine and I wish to use 6 of them to run a task much more complicated than this example. multitest - function(n = 1000, lam = 500) { ### Purpose:- Simple parallel task to check why mclapply doesn't work ###

Re: [R] Transferring R to another computer, R_HOME_DIR

2013-04-25 Thread p_connolly
Quoting Saptarshi Guha saptarshi.g...@gmail.com: Hello, I was looking at the R (installed on RHEL6) shell script and saw R_HOME_DIR=/usr/lib64/R. Nowhere (and I could have got it wrong) does it read in the environment value R_HOME_DIR. I have the need to rsync the entire folder below

Re: [R] How can i keep only latest entries?

2013-01-17 Thread p_connolly
Quoting Mat matthias.we...@fnt.de: Hello togehter, i have a data.frame like this one: No. Date last change 1 1 2012-10-04 change settings 2 1 2012-10-20 bug fix 3 1 2012-11-05 final 4 2 2013-01-15new task 5 2 2013-01-16Bug fix 6

[R] Equivalent of box() in grid graphics

2013-01-16 Thread p_connolly
Paul Murell's article What's in a Name in The R Journal Vol 4/2 gives an interesting example of editing a stacked barplot of the barley data. Using the method described in that article, it's easy to do something along the lines of grid.edit(plot_01.border.strip.1, grep=TRUE,

Re: [R] Replace NA with something else

2012-11-18 Thread p_connolly
Try x1$`NA` instead of x1$NA. HTH Quoting eric ericst...@aol.com: I inserted na.strings='' and that seemed to work except for a problem with a plot statement plot(x1$NA,type='l',ylab='M kg/ y ',xlab='') Error: unexpected numeric constant in plot(x1$NA tail(x1) AP EU LA

[R] strip.custom() with more than one conditioning variable

2012-11-15 Thread p_connolly
Suppose I wanted to plot the barley data like this: dotplot(variety ~ yield | year+ site, barley, strip = strip.custom(style = 4)) The factor levels are far too long for that to be useful. I can overcome that problem if I shorten the levels like this: dotplot(variety ~

Re: [R] strip.custom() with more than one conditioning variable

2012-11-15 Thread p_connolly
Thanks Duncan, but it's of no use. It still leaves space for two strips and doesn't use the first one. I don't actually want a style = 4. I used it as an example of when a factor.levels vector might be wanted. In my case I want a vector of expressions which can't be made factor levels. If I

Re: [R] trouble installing Rmpi on a debian machine

2012-07-05 Thread p_connolly
Quoting Erin Hodgess erinm.hodg...@gmail.com: Dear R People: I'm having trouble installing Rmpi on a debian machine. Here is my output: bccd@node000:~$ /bccd/home/bccd bccd@node000:~$ bccd@node000:~$ export RMPI_TYPE=OPENMPI bccd@node000:~$ R CMD INSTALL Rmpi_0.5-9.tar.gz * installing to

[R] Comments disappearing from local functions (R 2.14.0)

2011-11-21 Thread p_connolly
I've installed R-2.14.0 from source on CentOS and on Kubuntu and in both cases, I see something I've never seen before. Comments in locally written functions disappear. I put comments there for a purpose and I'd like to keep them. I can still use older versions of R without that happening.

Re: [R] help with nprmpi

2011-07-06 Thread p_connolly
Quoting Ouattara b.ouatt...@swansea.ac.uk: Dear I have been trying to a program which requires nprmpi. However, I have tried to install the downloaded zip file but get the error: cannot open compressed file 'npRmpi_0.40-7.tar.gz/DESCRIPTION' Since you didn't tell us any basic information, we

Re: [R] hello about proxy configuration

2011-06-19 Thread p_connolly
Quoting 王海生 edwin_ue...@163.com: dear everyone system:windows XP R2.13.0 I download the windows binary from website and successfully install it ,because I use a proxy server ,when I follow the instrction as follows: I set a system property R_HOME=C:\Program Files\R\R-2.13.0

Re: [R] adding text to y-axis per row of panels (lattice)

2011-01-20 Thread p_connolly
On Thu, 20-Jan-2011 at 10:34AM +0200, E Hofstadler wrote: | Dear all, | | Being a newbie to R, I've trawled through many old posts on this list | looking for a solution to my problem, but unfortunately couldn't quite | figure it out myself. I'd be very grateful if someone here on this | list

Re: [R] Does anybody know how to control the appearance of the end of the line in lattice?

2010-08-08 Thread p_connolly
On Sun, 08-Aug-2010 at 12:49PM -0700, George Chen wrote: | Hi All, | | I am plotting vertical lines using xyplot in lattice and type=h. | It works well, but the problem is that the tops of the lines are | convex and the bottoms are concave. Is there a way to flatten the | tops and bottoms? The

[R] Unwanted association between a function and a namespace

2009-12-23 Thread p_connolly
I can't understand how the plyr package is turning up here: sessionInfo() R version 2.10.1 (2009-12-14) i686-pc-linux-gnu locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8 [7]

Re: [R] Unwanted association between a function and a namespace

2009-12-23 Thread p_connolly
Quoting Duncan Murdoch murd...@stats.uwo.ca: On 23/12/2009 3:36 PM, p_conno...@slingshot.co.nz wrote: I can't understand how the plyr package is turning up here: [...] I can understand that lattice would be using grid without having that package loaded, but I can't understand how plyr

Re: [R] How to install older version of R?

2009-11-18 Thread p_connolly
On Thu, 19-Nov-2009 at 01:12AM +0800, Pan, Jia-chiun wrote: | Dear list | | This is much like a linux problem, but I can't find any | reference for it. My OS is ubuntu 9.04 and a version of 2.9.2 of R has | been already installed in. Now, I need to install the version of 2.7.1. | I google

[R] When is a function call an expression? (multicore package)

2009-11-09 Thread p_connolly
I'm trying to understand how to use the multicore package. In particular, I'm trying to work out what is covered where it says this in the help file for the parallel function: expr: expression to evaluate (do _not_ use any on-screen devices or GUI elements in this code) Can a

Re: [R] PDF Corrupted?

2009-10-27 Thread p_connolly
Quoting rkevinbur...@charter.net: I am running R 2.9.2 and creating a PDF that I am trying to open with Adobe Reader 9.2 but when I try to open it the reader responds with There was an error opening this document. The file is damaged and cannot be repaired.: I am using the R command(s):

Re: [R] Best R text editors?

2009-09-01 Thread p_connolly
On Mon, 31-Aug-2009 at 08:25PM +1000, Jim Lemon wrote: [...] | Hi Liviu, | I was going to steer clear of this one, as my favorite editor (NEdit) | has become mildly incompatible with my favorite window manager (KDE) on | my favorite operating system (Linux) and I have sadly taken to using |

[R] Mysteriously vanishing LD_LIBRARY_PATH

2009-07-08 Thread p_connolly
Using R-2.8.0 and R-2.8.1, I get behaviour like this: R version 2.8.0 (2008-10-20) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 [] Sys.getenv(LD_LIBRARY_PATH)

Re: [R] Mysteriously vanishing LD_LIBRARY_PATH

2009-07-08 Thread p_connolly
Quoting Godmar Back god...@gmail.com: R respects LD_LIBRARY_PATH, see /usr/lib/R/etc/ldpaths where it prepends its own path to any value in the environment when R is invoked: if test -z ${LD_LIBRARY_PATH}; then LD_LIBRARY_PATH=${R_LD_LIBRARY_PATH} else

Re: [R] plot lines at 0,0 axis

2009-03-16 Thread p_connolly
Quoting Mohan Singh mohan.si...@ucd.ie: Hii I am trying to plot lines at (0,0) axis where my scatterplot goes between positive n negative values for x and y axis i can plot point using points(0,0) but if i want to draw lines along it, can't seem to get it right ?abline maybe abline(h

Re: [R] Installing R into home directory?

2008-07-03 Thread p_connolly
On Tue, 01-Jul-2008 at 09:46AM +0100, Steve Cadman wrote: | I've been trying to install R into a user's home directory for them | by compiling from source code, on a machine for which neither of us | has administrative access. I've run configure using the --prefix | option to specify their home