Skip to content

Possible faded example for Challenge: Plot Polygon by Attribute #319

Open
@trasea986

Description

@trasea986

One topic that came up during instructor training was potentially providing faded examples for existing challenges. Here is a possible series of faded examples. First time contributing, so hopefully this is okay. I am definitely open to feedback. Note from issue 256 "Unnecessary coord_sf() calls in plotting examples? #256," which calls for the removal of "coord_sf()", that these could be adjusted to match those potential changes accordingly.

Lesson: 07-vector-shapefile-attributes-in-r

Order: Answer, Beginner, Intermediate, Advanced

colors <- c("purple", "springgreen", "yellow", "brown", "navy")
ggplot() + geom_sf(data = state_boundary_US, aes(color = region), size = 1) + scale_color_manual(values = colors) +
coord_sf()

colors <- c(_____, _____, _____, _____, _____)
ggplot() + geom_sf(data = state_boundary_US, aes(color = _______), size = ______) + scale_color_manual(values = _____) +
coord_sf()

colors <- c() #using 5 colors of your choice
ggplot() + geom_sf(
_, _____(color = _______), size = ) + scale_color_manual( = _____) +
coord_sf()

colors <- c(_____)
ggplot() + _____
_____ ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementPropose enhancement to the lesson

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions