plotly / plotly/plotly.R

Splom fig not showing any markers

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

Nobody has claimed this yet.

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

Description

Hello,
The sample code for the splom is not showing the scatter markers for me. I get all the different frames but no markers.

Has this issue been raised by anyone?

library(plotly)
library(dplyr)
df <- read.csv('https://raw.githubusercontent.com/plotly/datasets/master/iris-data.csv')
pl_colorscale=list(c(0.0, '#19d3f3'),
                   c(0.333, '#19d3f3'),
                   c(0.333, '#e763fa'),
                   c(0.666, '#e763fa'),
                   c(0.666, '#636efa'),
                   c(1, '#636efa'))
axis = list(showline=FALSE,
            zeroline=FALSE,
            gridcolor='#ffff',
            ticklen=4)

df %>%
    plot_ly() %>%
    add_trace(
        type = 'splom',
        dimensions = list(
            list(label='sepal length', values=~sepal.length),
            list(label='sepal width', values=~sepal.width),
            list(label='petal length', values=~petal.length),
            list(label='petal width', values=~petal.width)
        ),
        text=~class,
        marker = list(
            color = as.integer(df$class),
            colorscale = pl_colorscale,
            size = 7,
            line = list(
                width = 1,
                color = 'rgb(230,230,230)'
            )
        )
    ) 

image

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

Start by running the supplied R sample for the plotly.R splom trace and inspect how the frames and scatter markers are rendered. The issue is resolved when the sample displays the expected markers across the splom frames.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.