plotly / plotly/plotly.R

Set `height` in `ploty_ly` and use `height = "auto"` in `plotlyOutput`

Open
#1,980 0 comments 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,

In the doc of plotlyOutput, the usage of height="auto" is not encouraged. However using height="auto" in plotlyOutput and setting height in the plot_ly function gives a perfect result, and this is very useful to have the ability to set the height in the plot_ly function. So I think this "trick" should be mentioned in the doc.

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

Locate the plotlyOutput documentation and its current guidance about height="auto", then review the plot_ly documentation for the height argument. Update the documentation to describe using height="auto" in plotlyOutput together with a height set in plot_ly, and verify that the rendered wording clearly explains this usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization, documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.