hrbrmstr / streamgraph

:wavy_dash: htmlwidget for creating streamgraph visualizations in R
http://hrbrmstr.github.io/streamgraph/
Other
148 stars 49 forks source link

function missing #30

Open hoppydata opened 6 years ago

hoppydata commented 6 years ago

i can find the function sg_add_marker() in the help pages but it seems missing. no errors while installing the latest package version 0.8.1 on R.3.4.2

> g%>%  sg_add_marker(x=2010,"ahoi")
Error in sg_add_marker(., x = 2010, "ahoi") : 
  could not find function "sg_add_marker"
> ls("package:streamgraph")
 [1] "%>%"               "renderStreamgraph" "sg_annotate"       "sg_axis_x"         "sg_axis_y"        
 [6] "sg_colors"         "sg_fill_brewer"    "sg_fill_manual"    "sg_fill_tableau"   "sg_legend"        
[11] "sg_title"          "streamgraph"       "streamgraphOutput" "widgetThumbnail"

keep up the good work. cheers!

jmcastagnetto commented 4 years ago

Seems like there is the @export line missing in https://github.com/hrbrmstr/streamgraph/blob/master/R/marker.r

Workarounds until this is fixed in this repo:

  1. Copy that code in yours and use it.
  2. Get the package code, fix locally and install from that version