-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leverage sf? #53
Comments
It sounds interesting, I want to look at the quality of the plots, but just that type of simplicity is what I am after.
-Roy
On Feb 8, 2017, at 2:22 PM, Carson ***@***.***> wrote:
cc @sckott @rmendels
The fairly new sf package is gaining lots of traction and there is even a new geom_sf() coming to ggplot2
Assuming we can represent griddap/tabledap data structures using simple features, we can leverage/augment some already existing "automatic plotting methods" (e.g., plot.sf() and geom_sf()).
I'm thinking that (over the next week or so) I will attempt to write some tabledap/griddap_csv/griddap_nc methods for the sf::st_as_sf() generic, so generating plots could be as simple as:
library(rerddap
)
library(
sf
)
library(
ggplot2
)
d <- st_as_sf(tabledap('erdCinpKfmBT'
))
plot(
d
)
ggplot()
+ geom_sf(data = d)
Does this sound reasonable?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn@noaa.gov www: http://www.pfeg.noaa.gov/
"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
|
@rmendels fyi this has a decent overview of plotting To see some devtools::install_github("tidyverse/ggplot2#1990")
library(ggplot2)
?geom_sf # see examples section |
Neat. But can it handle rasters say over the ocean, or over land as in my examples, or are you thinking of only using this for table data?
And I have no problem if you build against a feature of ggplot2 that is still only on github.
-Roy
On Feb 8, 2017, at 3:05 PM, Carson ***@***.***> wrote:
@rmendels fyi this has a decent overview of plotting sf objects via the plot() generic -- http://r-spatial.org/r/2017/01/12/newssf.html
To see some geom_sf() examples:
devtools::install_github("tidyverse/ggplot2#1990"
)
library(
ggplot2
)
?
geom_sf # see examples section
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn@noaa.gov www: http://www.pfeg.noaa.gov/
"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
|
can I close this @cpsievert ? |
yep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cc @sckott @rmendels
The fairly new sf package is gaining lots of traction and there is even a new
geom_sf()
coming to ggplot2Assuming we can represent griddap/tabledap data structures using simple features, we can leverage/augment some already existing "automatic plotting methods" (e.g.,
plot.sf()
andgeom_sf()
).I'm thinking that (over the next week or so) I will attempt to write some
tabledap
/griddap_csv
/griddap_nc
methods for thesf::st_as_sf()
generic, so generating plots could be as simple as:Does this sound reasonable?
The text was updated successfully, but these errors were encountered: