plotly / plotly/plotly.R

change scattermapbox symbols

Open
#1,722 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plotly.js
Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Description

I would like to change the symbol in a scattermapbox but so far I have been unsuccessful. I suppose that I am just not using the right syntax, but I have not been able to get any hints from the documentation.

dat <- tibble::tribble(~latitude, ~longitude,
 "39.33359", "-76.63563",
 "38.85391", "-76.90812",
 "39.39105", "-76.83006")

fig <- dat  %>%
      plot_mapbox(
        lat = ~latitude,
        lon = ~longitude,
        mode = "markers",
        marker = list(symbol = 'car', size = 15, color='blue'),
        type = 'scattermapbox') 
fig %>%
    layout(
      mapbox = list(
        style = 'open-street-map',
        zoom = 5,
        center = list(lat = 39.33359, lon = -76.63563)))

It works fine with the default shape (circle).
Any idea?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are named. Start by reproducing the supplied R example and checking the scattermapbox marker-symbol documentation; done means identifying the supported syntax or documenting that the requested symbol is unavailable, with a working example or a clear limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.