powered by
This function allows predicting the pixel location of points of current plot. Note: may be imprecise in case of x or y with all same values.
.predPointsPix( x, y, dimPng, res, marg, fromTop = TRUE, scExt = 0.04, displ = FALSE, callFrom = NULL, silent = FALSE, debug = FALSE )
This function returns a numeric matrix with 2 columns 'xPix' and 'yPix' (with length(x) rows); and optionally a plot (if argument displ=TRUE)
displ=TRUE
(numeric) initial coordinates for plot
(numeric, length=2) width and hight of png
(numeric, length=1) resultion of png
(numeric, length=4) margins in inches (as given by par(mar=c(...)))
par(mar=c(...))
(logical) default counting in html is from top
(numeric, length=1) extending scale (default at 0.04 ie 4 %)
(logical) optional plot
(character) allows easier tracking of messages produced
(logical) suppress messages
(logical) additonal messages for debugging
convertPlotCoordPix, mouseOverHtmlFile
convertPlotCoordPix
mouseOverHtmlFile
.predPointsPix(x=c(1,100), y=c(1,100), dimPng=c(700,600), res=200, marg=c(5,4,4,2))
Run the code above in your browser using DataLab