plotly / plotly/plotly.R

[Request] Provide a parameter to suppress the "No trace type specified" warning+message

Open
#1,202 2 comments 6 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

For example, the first sample code in ?plot_ly is

plot_ly(economics, x = ~pop)

Running that results in

No trace type specified:
  Based on info supplied, a 'histogram' trace seems appropriate.
  Read more about this trace type -> https://plot.ly/r/reference/#histogram

Sometimes this comes out as a warning and sometimes as a message. There are a variety of ways to deal with workarounds trying to suppress warnings/messages they're not ideal. It would be great if there was a parameter that would allow us to suppress such messages

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 with the plot_ly entry point and reproduce the plot_ly(economics, x = ~pop) example from ?plot_ly. Trace where the "No trace type specified" warning or message is emitted and determine how a suppression parameter should cover both forms. Done means callers can suppress this output while existing behavior remains unchanged when the parameter is not used.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
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.