spurious warning when mapping marker size
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
The simple scatterplot has a third variable mapped to the marker/point size. The plot looks perfect to me, but it throws a warning about multiple values. Each x & y value has exactly one size value.
Other than suppressing the warning, can a respecify this graph so it does not throw the warning?
Warning message: `line.width` does not currently support multiple values.
Code:
plotly::plot_ly(
data = iris,
x = ~Sepal.Length,
y = ~Petal.Length,
size = ~Sepal.Width,
type = 'scatter',
mode = 'markers'
)
Originally posted at https://stackoverflow.com/questions/52692760/spurious-warning-when-mapping-marker-size-in-plotly-r.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the warning with the provided plotly::plot_ly() scatterplot using iris and the Sepal.Width size mapping. Trace the scatter marker-size handling and the reported line.width warning. Done means the plot retains the mapped marker sizes without emitting the spurious multiple-values warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- plotly, 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
