Hi Eddie,

There are a couple of ways you can do it using the raster package. For
example, create a point at the desired location, and use extract() from a
raster to a SpatialPoints data type. Or, you could have a data.frame or
matrix with x/y coordinates for which you want the points. Or possibly use
the Extract by Index feature, if you know the row/column index, for the
cell, you could use. Check out pages 66-70 in the PDF documentation for the
package: http://cran.r-project.org/web/packages/raster/raster.pdf

With the data resulting from the extract() you should be able to plot what
you need, though you may need to transpose the result for easier plotting.

>From playing around with the examples in the documentation, it seems to do
what you need.

Hope that helps,
Mike




On Thu, Sep 12, 2013 at 2:12 PM, Eddie Smith <eddieatr@gmail.com> wrote:

> Dear list,
>
> I have a rasterstack that consist of daily images(30 days).
>
> Is there any ways I could select a pixel and plot how the value behave
> through time?
>
> Thanks in advance.
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

