Re: [R] Graph many points without hiding some

2011-04-03 Thread Samuel Dennis
org] On Behalf Of Dennis Murphy > > Sent: Thursday, March 31, 2011 1:36 AM > > To: Samuel Dennis > > Cc: R-help@r-project.org > > Subject: Re: [R] Graph many points without hiding some > > > > Hi: > > > > I can think of a couple: (1) size reduction of the

[R] Graph many points without hiding some

2011-03-30 Thread Samuel Dennis
ve this through automatically iterating my data as above, using transparent symbols, or something else? Is there some other way of solving this issue that I haven't thought of? Thankyou, Samuel Dennis [[alternative HTML version deleted]] __ R-hel

Re: [R] how do i plot this "hist"?

2010-11-09 Thread Samuel Dennis
To superimpose anything onto a barplot you just need to know the x axis locations of the bars, then everything behaves as expected. You can find this by writing the barplot to an object, ie: bp <- barplot(c(1:5),beside=TRUE) bp is now a matrix containing the actual x axis locations of the bars (i

Re: [R] help cannot put multiple chart Stacked Bar (from PerformanceAnalysis library) in a single plot

2010-11-09 Thread Samuel Dennis
I am unfamiliar with the chart.StackedBar function, but since barplot works as expected I thought I'd check that you do know you can obtain stacked bar charts using barplot also? (beside = FALSE). On 10 November 2010 09:41, patrick nguyen wrote: > Hi > > > I'm having problems displaying multiple

[R] AM/PM strptime %p failing 2.11.0 WinXP

2010-05-23 Thread Samuel Dennis
d upgrading R (which I have done), and just suggested it was a problem with that particular installation of R and Windows. What could I do to get this function working on my Windows XP machine? Thankyou, Samuel Dennis sjdenn...@gmail.com [[alternative HTML version deleted]] ___

Re: [R] Barplot + plot same scale

2010-01-07 Thread Samuel Dennis
lot(c(10,12,18)) lines(midpts,c(0,2,3), t="l") This will make your barplot, save the centres of the bars to a variable called "midpts", and then plot a line over those bars. I hope this helps. Samuel Dennis 2010/1/8 Mister Vanhalen : > Hello, > > I would like

Re: [R] Optimise parameter of a generic function

2009-09-23 Thread Samuel Dennis
Typical, spotted a very stupid typo in my code after posting, and when corrected I have solved my own problem. Sorry for bothering everyone. Line below should have read: optimise(f = nbinopt, interval = c(0,100), maximum=FALSE, tol=0.01) Samuel Dennis wrote: > > optimise(f = nbin063, in

[R] Optimise parameter of a generic function

2009-09-23 Thread Samuel Dennis
I would like to know how to determine the best value of a particular parameter in a generic function. My function is: nbin <- function(k,Dt) { R <- Dt / (k + Dt) q <- (k + Dt) / k Pt <- c(0:7) for (r in c(0:7)) { Pt[r+1] <- (factorial(k+r-1)/(factorial(r)*factorial(k-1)))*((R^r)/(q^k)) } Pt } Th