Opened 4 years ago

Last modified 19 months ago

#2292 new task

Suggestions for R quickstart

Reported by: micha Owned by: osgeolive@…
Priority: normal Milestone:
Component: Documentation Keywords:
Cc:

Description

A suggestion, and correction in the R quickstart:

It would be preferable to remove the prompt character '>' from the code examples, to allow simple copy/paste from the quickstart to user's console.

The final example has an error, misplaced parenthesis. Here is the correct statment:

ggplot() + 
    geom_sf(data = ukos) + 
    geom_sf(data = ukpop, aes(size = ukpop$POP_MAX/100000),
        color = "red", alpha=1/5) + 
    coord_sf(crs=27700, datum=sf::st_crs(27700),
        xlim=st_bbox(ukos)[c(1,3)],  # These two lines are corrected
        ylim=st_bbox(ukos)[c(2,4)])

Change History (3)

comment:1 by micha, 4 years ago

PR submitted

comment:2 by micha, 4 years ago

Please implement only the second suggestion:

The final example has an error, misplaced parenthesis. Here is the correct statement:

ggplot() + 
    geom_sf(data = ukos) + 
    geom_sf(data = ukpop, aes(size = ukpop$POP_MAX/100000),
        color = "red", alpha=1/5) + 
    coord_sf(crs=27700, datum=sf::st_crs(27700),
        xlim=st_bbox(ukos)[c(1,3)],  # These two lines are corrected
        ylim=st_bbox(ukos)[c(2,4)])

comment:3 by darkblueb, 19 months ago

Component: OSGeoLiveDocumentation
Note: See TracTickets for help on using tickets.