How to plot my dataset on map, I have the coordinates as 57.03 degree N, 10.00 degree E
Hi!
To help us help you, could you please prepare a repr oducible ex ample (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
A minimal reproducible example consists of the following items:
A minimal dataset, necessary to reproduce the issue
The minimal runnable code necessary to reproduce the issue, which can be run
on the given dataset, and including the necessary information on the used packages.
Let's quickly go over each one of these with examples:
Minimal Dataset (Sample Data)
You need to provide a data frame that is small enough to be (reasonably) pasted on a post, but big enough to reproduce your issue.
Let's say, as an example, that you are working with the iris data frame
head(iris)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.…
1 Like
This post might help:
Hey all,
I'm just now getting into using R to visualize locations on a map. For example, I have 30 locations all within a city, an I want to plot them on a map, using a color to highlight something about their relative prices. If this wasn't a map, I'd just use
ggplot(data = df, aes(x = long, y = lat, color = price)) +
geom_point()
or something like that.
I started looking into plotting packages, and I see (at least) 3 - ggmap, leaflet, and sf. Does anyone have opinions on the differences between these? Positives, and negatives, when one is better than the other, etc...
Would it matter if I wanted to make an animation of how the prices change over time?
Thanks!
Though create a reprex like @andresrcs suggested if you need specific help
PJ
1 Like
system
Closed
November 14, 2019, 1:17pm
4
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.