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

How to classify values in attribute table #1168

Closed
solomonsg opened this issue Oct 7, 2019 · 1 comment
Closed

How to classify values in attribute table #1168

solomonsg opened this issue Oct 7, 2019 · 1 comment

Comments

@solomonsg
Copy link

solomonsg commented Oct 7, 2019

Dear all,

I am plotiing values in attribute table of a shapefile and the values in one of the table ( e.g. Duration) ranges from 0-4370 and i want to classfy them into 5 using somthing breaks,
breaks=c(0, 2776, 3061, 3272, 3558, 4370)

Is there any way to to do this classfication in r;

   shp <- read_sf('Duration.shp')
   ggplot(shp) + geom_sf(aes(colour = Duration))

Best regards,

Solomon

@edzer
Copy link
Member

edzer commented Oct 7, 2019

You'll find an answer below your initial post: #88 (comment)

@edzer edzer closed this as completed Oct 7, 2019
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

2 participants