Skip to content
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

Ask question about practice(file:6-routing.md) #109

Open
Haode-Sun opened this issue Feb 16, 2023 · 3 comments
Open

Ask question about practice(file:6-routing.md) #109

Haode-Sun opened this issue Feb 16, 2023 · 3 comments

Comments

@Haode-Sun
Copy link
Contributor

When I plot the centrality of the Isle of Wight road network, it seems different with the map as shown in document.I found that the legend is in this format: "0min to 1min..." , while the example legend is: "0 to 73.215...".
image
I try to double check my centrality centrality_sf dataframe,it include 'centrality' and the unit is not min.
1676579018546
My code is as following:
tm_shape(centrality_sf) +
tm_lines(lwd = "centrality",col = "centrality", scale = 4,palette = "-viridis")

How can I solve this?Thank you.

@Robinlovelace
Copy link
Member

Not sure how you can solve that @Haode-Sun. Maybe you could set breaks manually with breaks = c(0, 1000, 100000) for example? Great job on opening an issue and cc @mem48.

@mem48
Copy link
Contributor

mem48 commented Feb 18, 2023

I think in the example i used jenks to set the breaks. Also the mln is short for million and is just tmap trying to be helpful by simplifying the legend

@mem48
Copy link
Contributor

mem48 commented Feb 18, 2023

You also seem to have a lot more roads. Did you miss the filter stage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants