Skip to content

Symbolized lines question #509

Description

@sstevens2

How could the content be improved?

In Episode 8, the paragraph below talks about showing lines in the legend differently. From what I can tell, the way the lines show in the plot the previous plot and the next one isn't different, except for the custom colors. The lines in the legend seem to appear the same prior to show.legend = 'line being added. Maybe this is legacy behavior being decribed?

Next, let’s build a custom legend using the symbology (the colors and symbols) that we used to create the plot above. For example, it might be good if the lines were symbolized as lines. In the previous episode, you may have noticed that the default legend behavior for geom_sf is to draw a ‘patch’ for each legend entry. If you want the legend to draw lines or points, you need to add an instruction to the geom_sf call - in this case, show.legend = 'line'.

Which part of the content does your suggestion apply to?

https://datacarpentry.github.io/r-raster-vector-geospatial/08-vector-plot-shapefiles-custom-legend.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions