[R] Problems outputting ggplot2 graphics to pdf

2017-03-02 Thread Hugh Morgan
Hi All, I am having trouble outputting ggplot2 graphics to pdf as part of a script. It works if when I pipe the script into R or if I type the commands directly into the terminal, but not if I load it using the source(..) command. In this case the outputted pdf is always size 3611, and it fails

Re: [R] Problems outputting ggplot2 graphics to pdf

2017-03-02 Thread Hugh Morgan
e, the result is automatically printed, but in 'source()' or inside your own functions you will need an explicit 'print()' statement. On Thu, Mar 2, 2017 at 8:37 AM, Hugh Morgan wrote: Hi All, I am having trouble outputting ggplot2 graphics to pdf as part of a script. It w

Re: [R] linking HTML with R

2012-09-06 Thread Hugh Morgan
Hi, There are many ways to do this. As well as the php way mentioned by Franz, you could use cgi. This would probably be considered the traditional way of doing it. As we are java web developers we are aiming to use Rserve (http://www.rforge.net/Rserve/) and tomcat (this can also interact

[R] How to construct a formula

2012-01-22 Thread Hugh Morgan
Hi, I need to construct a formula programaticly, and pass it to a function such as the linear mixed model lme. The help says it requires "a two-sided linear formula object describing the fixed-effects part of the model" but I do not know how to create this formula. I have tried various thin

Re: [R] How to construct a formula

2012-01-22 Thread Hugh Morgan
Thank you very much, that is exactly what I needed. Hugh On 01/22/2012 03:38 PM, Duncan Murdoch wrote: On 12-01-22 9:27 AM, Hugh Morgan wrote: Hi, I need to construct a formula programaticly, and pass it to a function such as the linear mixed model lme. The help says it requires "

Re: [R] formula error inside function

2012-01-29 Thread Hugh Morgan
Hi, I have what I suppose is the same problem as this. I am using the linear mixed model function lme, and this does not seems to take the attribute "model=TRUE" at the end of the function. Is there a more general way of solving this problem? Is my description of the problem below correct (f

Re: [R] formula error inside function

2012-02-02 Thread Hugh Morgan
<<- test_variable~Gender Cheers, Hugh On 01/29/2012 07:46 PM, Hugh Morgan wrote: > Hi, > > I have what I suppose is the same problem as this. I am using the > linear mixed model function lme, and this does not seems to take the > attribute "model=TRUE" at the end o

[R] What is the most cost effective hardware for R?

2012-05-08 Thread Hugh Morgan
Has anyone got any advice about what hardware to buy to run lots of R analysis? Links to studies or other documents would be great as would be personal opinion. We are not currently certain what analysis we shall be running, but our first implementation uses the functions lme and gls from the

Re: [R] What is the most cost effective hardware for R?

2012-05-08 Thread Hugh Morgan
On 05/08/2012 12:14 PM, Zhou Fang wrote: How many data points do you have? Currently 200,000. We are likely to have 10 times that in 5 years. Why buy when you can rent? Unless your hardware is going to be running 24/7 doing these analyses then you are paying for it to sit idle. You might

Re: [R] What is the most cost effective hardware for R?

2012-05-08 Thread Hugh Morgan
reof -- on a single "cheap" machine? It might be that your concerns are overblown, especially with multicore and parallelization. Obviously, ignore if you've already done this and know it's nonsense. Cheers, Bert On Tue, May 8, 2012 at 8:50 AM, Hugh Morgan wrote: On 05/08/

Re: [R] What is the most cost effective hardware for R?

2012-05-08 Thread Hugh Morgan
On 05/08/2012 06:02 PM, Rich Shepard wrote: On Tue, 8 May 2012, Hugh Morgan wrote: Perhaps I have confused the issue. When I initially said "data points" I meant one stand alone analysis, not one piece of data. Each analysis point takes 1.5 seconds. I have not implemented running

Re: [R] What is the most cost effective hardware for R?

2012-05-10 Thread Hugh Morgan
Thank you all for the help. We have decided against using for example Amazon cloud for basicly paperwork issues. We have money available now for buying kit, this may not be available for buying "services", and may not be available next year, or the next. We shall certainly consider it as a f