Skip to content

ggplotly stretch out to margins #1698

@Vidaringa

Description

@Vidaringa

I don't know if this is rmarkdown issue or plotly issue. I'm writing a rmarkdown document and I have few graphs made with the ggplot2 package. Then I have one graph made with plotly.

Plotly does not respect the width of the document. I have specified the width to be 1140px. The text and ggplot graphs respect that but plotly doesn't. See screenshot attached.

How can I force plotly to be of the same width as the text?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions