search for: rastertopoints

Displaying 4 results from an estimated 4 matches for "rastertopoints".

2017 Nov 17
2
How to produce rainfall maps
...show me another way providing a small example? Thank you for your help Stefano library(raster) library(ggplot2) #open ASCII file using ?raster? command, which converts the ASCII to a raster object map <- raster(?/your/path/to/file.asc?) #convert the raster to points for plotting map.p <- rasterToPoints(map) #Make the points a dataframe for ggplot df <- data.frame(map.p) #Make appropriate column headings colnames(df) <- c(?Longitude?, ?Latitude?, ?MAP?) #Call in point data, in this case a fake transect (csv file with lat and lon coordinates) sites <- data.frame(read.csv(?/your/path/to/p...
2017 Nov 21
0
How to produce rainfall maps
...nk you for your help > Stefano > > > library(raster) > library(ggplot2) > > #open ASCII file using ?raster? command, which converts the ASCII to a raster object > map <- raster(?/your/path/to/file.asc?) > > #convert the raster to points for plotting > map.p <- rasterToPoints(map) > > #Make the points a dataframe for ggplot > df <- data.frame(map.p) > #Make appropriate column headings > colnames(df) <- c(?Longitude?, ?Latitude?, ?MAP?) > > #Call in point data, in this case a fake transect (csv file with lat and lon coordinates) > sites <...
2017 Nov 22
2
How to produce rainfall maps
...gt; > library(raster) > > library(ggplot2) > > > > #open ASCII file using ?raster? command, which converts the ASCII to a > raster object > > map <- raster(?/your/path/to/file.asc?) > > > > #convert the raster to points for plotting > > map.p <- rasterToPoints(map) > > > > #Make the points a dataframe for ggplot > > df <- data.frame(map.p) > > #Make appropriate column headings > > colnames(df) <- c(?Longitude?, ?Latitude?, ?MAP?) > > > > #Call in point data, in this case a fake transect (csv file with lat a...
2017 Nov 23
0
How to produce rainfall maps
...nk you for your help > Stefano > > > library(raster) > library(ggplot2) > > #open ASCII file using ?raster? command, which converts the ASCII to a raster object > map <- raster(?/your/path/to/file.asc?) > > #convert the raster to points for plotting > map.p <- rasterToPoints(map) > > #Make the points a dataframe for ggplot > df <- data.frame(map.p) > #Make appropriate column headings > colnames(df) <- c(?Longitude?, ?Latitude?, ?MAP?) > > #Call in point data, in this case a fake transect (csv file with lat and lon coordinates) > sites <...