Opened 10 months ago

Last modified 9 months ago

#2292 new task

Suggestions for R quickstart

Reported by: micha Owned by: osgeolive@…
Priority: normal Milestone:
Component: OSGeoLive 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 (2)

comment:1 Changed 10 months ago by micha

PR submitted

comment:2 Changed 9 months ago by micha

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)])
Note: See TracTickets for help on using tickets.