Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

plot_mapbox: example from book not working after updating plotly #1707

Copy link
Copy link
Closed
@werkstattcodes

Description

@werkstattcodes
Issue body actions

Many thanks for your invaluable contribution with the plotly package!

I tried to recreate one map from your very helpful book on plotly & co (chapter 4.1.1).
Here the link.

library(plotly)
plot_mapbox(maps::canada.cities) %>%
  add_markers(
    x = ~long, 
    y = ~lat, 
    size = ~pop, 
    color = ~country.etc,
    colors = "Accent",
    text = ~paste(name, pop),
    hoverinfo = "text"
  )

The map is produced as intended when using your RStudio Cloud version which uses Plotly 4.9.0.9000. After updating the package to the latest CRAN version (which I use on my local machine, 4.9.2) the code produces only the dots, but no map in the background. Below a screenshot of the graph. I assume that's a bug, no?

Many thanks again.

Capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.