plotly / plotly/plotly.R

change scattermapbox symbols

未关闭
#1,722 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

plotly.js
主要语言
R
星标
2.7k
派生
641
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未提及任何仓库文件或测试。首先复现所提供的 R 示例,并检查 scattermapbox marker-symbol 文档;完成的标准是确定受支持的语法,或记录所请求的符号不可用,并提供一个可运行的示例或明确的限制。

由索引模型根据 Issue 内容生成。

评估

技术栈
r
领域
data-visualization
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。