search for: hufthamm

Displaying 20 results from an estimated 119 matches for "hufthamm".

Did you mean: hufthammer
2009 Nov 13
4
processing log file
Dear all, I'm trying to process a log file which logs the date, the username and the computer number accessed. The table looks like this: >table.users          Date UserName Machine 1  2008-11-25     John     641 2  2008-11-25    Clive     611 3  2008-11-25   Jeremy     641 4  2008-11-25     Walt     722 5  2008-11-25     Tony     645 6  2008-11-26     Tony     645 7  2008-11-26    
2013 Feb 08
3
Border width on symbols plotted with the lattice package
...auto.key=TRUE) ----- For 'xyplot' or 'dotplot' the border stays thin no matter what I set 'lwd' to. However, the symbols shown in the *legend* has the 'lwd' correctly applied. How can I fix this? Or is it simply a bug in the 'lattice' package? Karl Ove Hufthammer Output of 'sessionInfo()': R version 2.15.2 (2012-10-26) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=Norwegian-Nynorsk_Norway.1252 [2] LC_CTYPE=Norwegian-Nynorsk_Norway.1252 [3] LC_MONETARY=Norwegian-Nynorsk_Norway.1252 [4] LC_NUMERIC=C [5] LC_TIME=Norwegian-Nyno...
2007 Jul 13
1
Choosing the number of colour breaks in ggplot2
...z=dat$x^2+dat$y^2-100 ggplot(dat, mapping=aes(x=x, y=y, fill=z)) + geom_tile() + scale_fill_gradient2() --------------------------------------------- The image shows many (61) colours, but only 5 of them are shown in the legend. How do I change the legend to show, say, 10 colours? -- Karl Ove Hufthammer
2008 Apr 22
2
Getting rid of borders on semi-transparent plotting symbols
...e border colour) is the one I want? Frankly, the current behaviour feels much more like a bug than a feature. If I set pch=19, I want a completely filled circle, even if my chosen colour is partially transparent. I'm using R version 2.7.0 RC (2008-04-20 r45403) i686-pc-linux-gnu -- Karl Ove Hufthammer
2009 Oct 19
2
Possible bug in plot.POSIXct regarding x axis
...lower left corner, which makes no sense. Compare this to a simple 'plot(x)', which shows the index numbers on the x axis. I observe this with both R 2.9.2 and 2.10.0 alphas. If anybody can confirm that this should be considered a bug, I'll report it in the bug system. -- Karl Ove Hufthammer
2011 Feb 02
3
Applying multiple functions to one object
...ion that could also handle vectors and lists of values, and output the result as data frames or matrices. Example: x = c("foo", "bar", "foobar") fun(x, nchar, function(st) substr(st, 1 ,2) ) y = list(3, 3L, 3.14, factor(3)) fun(x, mode, typeof, class) -- Karl Ove Hufthammer
2009 Mar 20
2
Accuracy of R and other platforms
Hi, The paper @ARTICLE{AlmironSilvaMM:2009, author = {Almiron, M. and Almeida, E. S. and Miranda, M.}, title = {The Reliability of Statistical Functions in Four Software Packages Freely used in Numerical Computation}, journal = {Brazilian Journal of Probability and Statistics}, year = {in press}, volume = {Special Issue on Statistical Image and Signal Processing}, url =
2009 Oct 05
2
Long for Loop- calling C from R - Parallel Computing
Hello everyone, I'm running the following for loop to generate random variables in chunks of 60 at a time (l), here h is of order in millions (could be 5 to 6 millions), note that generating all the variables at once could have an impact on the final results for(j in 1:h){ dat$t.o[seq(0,g1,l)[j]+1:l]<-dat$mu[seq(0,g1,l)[j]+1:l] + rnorm(l,0,dat$g.var[seq(0,g1,l)[j]+1:l]) } Is there any
2007 Jul 16
2
Different axis limits for each facet in ggplot2
...ble to do this in 'ggplot2' too? I would have thought that + scale_y_continuous(limits=c(NA,NA)) would work, but this sets the 'y' axis to cover the range of 'y' and 'z' *combined* (which is very sensible as a default, but not what I would prefer here). -- Karl Ove Hufthammer
2008 May 30
1
Reducing space around lattice wireframe plots
...)) xy1 = con2tr(kde2d(x1, y1, n = 30, lims = ran)) xy1$dist = "correlated" xy2 = con2tr(kde2d(x2, y2, n = 30, lims = ran)) xy2$dist = "uncorrelated" xy = rbind(xy1, xy2) wireframe(z ~ x * y | dist, xy, screen = list(z = 16, y = -5, x = -47)) -- Karl Ove Hufthammer
2009 Oct 30
1
Applying a function on n nearest neighbours
...value equal to 1. (Exactly how to break ties when there are more than n number of observations with the same distance to the original row isn't very important, though. For example, using the ones with lowest row numbers would be an OK solution, or n random ones, would both OK.) -- Karl Ove Hufthammer
2009 Oct 30
2
data.frame extracting data row-wise
Dear All, I am struggling with extracting data from a data frame: x=data.frame(a=1:11,b=100:110) What I want is a list/vector in this sence: 1 100 2 101 3 102... For single rows, this works fine: as.matrix(x)[1,] For, say 2 rows, this works fine: z=c(as.matrix(x)[1,],as.matrix(x)[2,]) But z=c(as.matrix(x)[1:2,]) gives 1 2 100 101!? Is there an 'automated way' to produce a
2009 Nov 25
1
Kerning issues with CairoPDF
...UMERIC=C [5] LC_TIME=Norwegian-Nynorsk_Norway.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] Cairo_1.4-5 loaded via a namespace (and not attached): [1] tools_2.10.0 -- Karl Ove Hufthammer
2006 Sep 12
1
lattice cloud and conditional axis limits
...ed the same way the 'xypanel' function does, one of the following would work: cloud(z~x*y|s,scales=list(arrows=FALSE,z=list(relation="free"))) cloud(z~x*y|s,scales=list(arrows=FALSE,relation="free")) However, it does not. Any ideas how I can make it work? -- Karl Ove Hufthammer E-mail and Jabber: karl at huftis.org
2008 Apr 15
1
Text-based graphics/plots
...39; function, which is very nicely implemented, BTW. Here is some sample output (normal distribution, with decimal point at '|'). 46 | 8 47 | 123799 48 | 01222234456 49 | 001222333444678 50 | 1233334457788 51 | 00022556667778999 52 | 0112223 53 | 79 54 | 049 -- Karl Ove Hufthammer
2009 Dec 07
1
Subset of time observations where timediff > 60 secs
...erval following the first time value, and thus may include times with values that are closer than 60 seconds. I also considered round.POSIXct and trunc.POSIXct, but these are not appropriate either, for obvious reasons. So, any ideas how to do this in an elegant and efficient way? -- Karl Ove Hufthammer
2009 Jun 22
1
The gradient of a multivariate normal density with respect to its parameters
...pars[5] sig=matrix(c(sig1^2,rho*sig1*sig2,rho*sig1*sig2,sig2^2),2) dmvnorm(cbind(x,y),mu,sig) } mu1=1 mu2=2 sig1=3 sig2=4 rho=.5 x=2 # or a x vector y=3 # or a y vector jacobian(f,c(mu1,mu2,sig1,sig2,rho),xx=x,yy=y) # (Can replace ?jacobian? with ?grad? if x and y have length 1.) -- Karl Ove Hufthammer
2004 Mar 23
2
Tool for cutting Ogg Vorbis files
.... Cutting an Ogg file without adapting anything here and there will produce broken files. I could not find any understandable documentation of a structure in Vorbis files. If you know such docs, please let me know. Does anybody here know of such docs? -- Karl Ove Hufthammer --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages se...
2009 Nov 23
1
Natural colours for topographic data
...to 0 meters, and 20 colours of land, from a depth of 0 meters to 2000 meters), support several nice palettes, and also support logarithmic colour mapping. But I would be happy with a simple one, that just mapped negative values to water colours and positive values to land colours. -- Karl Ove Hufthammer
2009 Dec 10
3
How to figure out which the version of split is used?
There are a number of functions that are dispatched to from split(). > methods('split') [1] split.data.frame split.Date split.default split.POSIXct Is there a way to figure out which of these variants is actually dispatched to when I call split? I know that if the argument is of the type data.frame, split.data.frame will be called? Is it the case that if the argument is not