Skip to content

basic plotting naming convention (non-tilde ~) broken? #765

@khufkens

Description

@khufkens

From the plotly reference:

plot_ly(economics, type = "scatter", x = date, y = uempmed, name = "unemployment", marker = list(color="rgb(16, 32, 77)" ,marker-color))

results in this error:

Error in plot_ly(economics, type = "scatter", x = date, y = uempmed, name = "unemployment", :
object 'uempmed' not found

plot_ly(economics, type = "scatter", x = ~date, y = ~uempmed, name = "unemployment", marker = list(color="rgb(16, 32, 77)" ,marker-color))

Note the tilde in front of the x and y variable!!!
This plots normally!!

This small difference breaks most of my plotting routines (if not all).

--- version
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 3.1
year 2016
month 06
day 21
svn rev 70800
language R
version.string R version 3.3.1 (2016-06-21)
nickname Bug in Your Hair

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