Displaying 20 results from an estimated 10000 matches similar to: "convert pixels into axis coordinates in R"
2008 Jul 01
2
Are centre coordinates or upper left corners used of x, y for SpatialPixels?
Dear all,
I'm working with satellite images in R and plotting them via the code
below.
I was wondering whether coordinates (spatial["x"], spatial["y"]) are
used as centre coordinates of the pixels in the GRID? In this script;
spatial["x"] & spatial["y"] are the centre coordinates of the satellite
image pixels. I'm asking this because some
2008 Feb 29
2
How to convert the "user coordinate system" in R graph to "normal coordinate system" whose origin is the upper-left cornner of the drawing area?
Dear friends,
The user coordiante system in the R graphics is easy to understand as
it simply corresponds to the range of values on the axes of the plot.
However, sometimes, we want to kown the coordinates of a region in other
system, e.g., the normal coordinate system whose origin is the the
upper-left cornner of the drawing area which is used to set the hot regions
in the HTML image maps.
2009 May 06
1
Positioning a legend via X and Y coordinates
Dear R Users,
I'm able to display a legend using the following code:
> legend("topright", c("Simulation", "Observation"), fill=2:3, bty="n")
However, this causes the legend to be positioned too close to the bars in my barplot. I'd like to move the legend up slightly. I have been trying to determine the necessary values by trial and error to do
2012 Apr 06
2
Bayesian 95% Credible interval
Hi all,
I have the data from the posterior distribution for some parameter. I want
to find the 95% credible interval. I think "t.test(data)" is only for the
confidence interval. I did not fine function for the Bayesian credible
interval. Could some one suggest me?
Thanks
[[alternative HTML version deleted]]
2013 Oct 24
0
TR: problem with ecdf : "missing C_R_approxfun" message
Hi again, this is a follow-up of my previous post :
I've noticed that
> attr(first.list[[1]]$size.ecdf,"call") gives ecdf(test.moms[, "m.pxs"]) and that there is no "test.moms" field in my records (a local variable named test.moms was used inside a function, but it was stored under another name in the list, outside the function)
May this be the answer (and
2012 Aug 11
1
device "mismatch", coordinates trouble with X11 and pdf devices
Greetings.
I'm trying to understand a problem on a Dell Laptop. Details below,
also uploaded the R working example that I pasted below.
http://pj.freefaculty.org/scraps/testSymbols.R
> sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5]
2008 Jun 26
1
Layout() coordinates and drawing lines / segments
Hello,
I am trying to wrap my head around the coordinates systems associated with
the layout() function ...with the end goal of simply drawing a decorative
line in the upper margin of my figure, which is composed of three plots.
My output is defined as this:
----------------------------------------------------------------------------
postscript("out.ps", horizontal=FALSE,
2008 Jun 01
1
transforming output of grid.locator() to coordinates of a leaf viewport
Short form:
How do I transform the output of grid.locator() (or
grid.locator(unit='npc')) to the native (or npc) coordinates of a viewport other
than the top-level viewport?
Thanks in advance. -Ben
Long form:
I would like the user to be able to click anywhere on the R
graphics window. I would then like to figure out which leaf viewport the user
clicked in and compute the native
2012 Feb 23
1
using shapefiles in adehabitat/ converting shapefile to spatial pixel data frame
Hello
I wonder if anybody can help,
I am using the package adehabitatHR to estimate the potential distribution of a species using the command "domain"
In the example given in the AdehabitatHS manual a map containing elevation information is loaded (class= spatial pixels data frame) as well as the GPS points of the animals being tracked, these are then plotted on each other and
2012 Aug 09
1
How to find data in a map according to coordinates?
Hello,
I have created a spatial map of temperature over an area thanks to
interpolation. So I have temperature data everywhere on my map.
My question is: how can I find temperature data on my map for a specific
location according to coordinates?
For this, I have a data frame containing 4 columns: "x" for longitude, "y"
for latitude, "z" for altitude" and
2011 Mar 27
2
Coordinates of the text region
Hello R people
Is there a way to get the coordinates of the text region (coordinates of the four corners for example) when using the text function? I'm looking for a way that does not make use of interactive function like locator. My goal is to determine the position of other structures in a graphic so that they don't overlap with the text.
Thanks
Francois Rousseu
2016 Sep 01
2
[Bug 97568] New: read pixels of MSAAx8 surface stretched horizontally/vertically
https://bugs.freedesktop.org/show_bug.cgi?id=97568
Bug ID: 97568
Summary: read pixels of MSAAx8 surface stretched
horizontally/vertically
Product: Mesa
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
2009 Aug 04
1
asc class object - how to get positions (coordinates) for a given raster ID?
In a raster asc object, I'd like to take the positions (x and y coordinates)
for a given "pixel" ID. Any idea about how to do this?
_______________
Paulo E. Cardoso
[[alternative HTML version deleted]]
2004 Feb 27
3
locator(n=0)
locator(n=1) returns the coordinates of the position of the mouse.
But you have to click the left button of the mouse.
How can I determine the mouse position without any click?
Is it possible to extend locator in a way that
locator(n=0) outputs the coordinates at once, without any click event?
TclTk allows us to define very nice animations and demonstrations,
see for example: demo(tkdensity).
2011 Jul 29
5
coordinates from locator function in POSIXct format
Dear R-list,
I have a plot with y-axis corresponding to wind measurments
and x-axis with date-time information.
When I want to identify some extrem wind events in the
wind-curve, I use locator() to get the exact
date-information, by clicking in the points in graph I?m
interested in.
I get in the R console the x and y coordinates.
The x coordinates are not in a POSIXct format, I guess R is
2005 Nov 02
2
help with the coordinates of the ECDF object
Hi all R users
I would like to know how acess the coordinates
of the ECDF object.
I look for the example,
in this part:
######################
print(ls.Fn12 <- ls(env= environment(Fn12)))
######################
but I do not know to extract
the Y coordinate and put it in other variable.
My objective is to make a plot
and identify the points with labels.
############# Example by
2001 Jul 16
0
font size in pixels instead of points
OK. I've played with this for long enough now. Any chance of some help?
In order to solve some problems with an application I went through the
process of converting the VGASYS and SSERIFE fonts. (I'll make a couple of
additions to the docs when I get a moment!). However when I go to select
the MS Sans Serif fonts from the standard "font choice dialog" thingy the
available
2005 Jun 15
1
Graph with values of coordinates of points in x axis
Hi all,
I want to draw a line with the values of x marked in X axis.
I tried with
x <- c(0,6,12,18,24,30) #coordinates of points x
y <- c(2,5,7,5,7,16) #coordinates of points y
plot(x,type="n",xlab="Months",ylab="Y
values",main="main",ylim=c(0,16),xlim=c(0,30))
lines(x,y)
The graph shows by default an increment of the sequence in x axis that
2009 Jan 21
1
A question on histogram (hist): coordinates on x-axis are too sparse
Dear R helpers:
Let's say I have some data X,
X <- runif(1000, 1, 10000000000)
pdf('X.pdf', width=100,height=5)
hist(X, breaks=1000)
dev.off()
I find that, on x-axis the coordinates are 0e+00, 2e+09, 4e+09, 6e+09, 8e+09, 1e+10. Only five numbers, which is too sparse in a 100x5 pdf file. I want the x-axis coordinates to become more dense, e.g.
2010 Oct 15
3
Recovering x/y coordinates from a scatterplot image
Do I recall correctly that there is an R package that can take an image,
and help one estimate the x/y coordinates? I can't find the package,
thought it was an R-tool, but would appreciate any leads.
Thanks,
Rob