search for: sigdigs

Displaying 3 results from an estimated 3 matches for "sigdigs".

2008 Jun 02
6
significant digits (PR#9682)
...'s written not particularly useful. There are two solutions I can think of off the top of my head. The first is to create a new data type of a fixed length real number but the easier way would be to have a function that returns a string something like this: signif.string <- function(signum,sigdigs){ left <- nchar(trunc(signum)) right <- nchar(signum-trunc(signum))-2 if (abs(signum)<1 | signum<0) {left<-left-1} if (right<0) {right<-0} if (sigdigs<left) {return(as.character(signif(signum,digits=sigdigs)))} else if (sigdigs==left) {return(paste(round(signum),...
2012 Nov 20
2
[lattice] how to overlay a geographical map on a levelplot?
r-help lattice adepts: I have a question which is somewhat geospatial, so I posted to r-sig-geo rather than here: https://stat.ethz.ch/pipermail/r-sig-geo/2012-November/016757.html > summary: How to overlay a geographical map on each panel in a lattice > (or Trellis), e.g., of levelplot's? Note I am not inquiring about > creating choropleth maps[,] which Sarkar 2008 covers quite
2013 Apr 26
1
[newbie] how to find and combine geographic maps with particular features?
...ith code like https://bitbucket.org/tlroche/gfed-3.1_global_to_aqmeii-na/src/95484c5d63502ab146402cedc3612dcdaf629bd7/vis_regrid_vis.r?at=master > visualize.layers( > nc.fp=monthly_out_fp, > datavar.name=monthly_out_datavar_name, > layer.dim.name=monthly_out_time_dim_name, > sigdigs=sigdigs, > brick=monthly.out.raster, > map.list <- list(NorAm.shp), > pdf.fp=monthly_out_pdf_fp, > pdf.height=monthly_out_pdf_height, > pdf.width=monthly_out_pdf_width > ) https://bitbucket.org/tlroche/gfed-3.1_global_to_aqmeii-na/src/95484c5d63502ab146402cedc3612dcd...