vistime()
passes source
and customdata
to plot for interactive Plotly
click or hover events in Shiny (closes #34, thanks @jonocarroll).col.color
and col.fontcolor
are string type, i.e. vistime(dat, col.color = color_column)
fails and vistime(dat, col.color = "color_column")
succeeds. This was implemented for the other columns already.assertive.types
with assertthat
markdown
dependency for vignette building as per yhui/knitr#1864hc_vistime()
labels on y-axis were incorrectly reversed (#24)highcharter
is no more installed by default when you install vistime
optimize_y = TRUE
did not work correctly for ranges that occur during other ranges (issue #22)hc_vistime()
README.md
into three vignettes:
assertive.types
package instead of assertthat
for nicer error messagestestthat 3.0
for unit testshc_vistime()
argumentscol.event
instead of event
col.start
instead of start
col.end
instead of end
col.group
instead of groups
col.color
instead of colors
col.fontcolor
instead of fontcolors
col.tooltip
instead of tooltips
hc_vistime()
: Create an interactive timeline rendered by the great Highcharter.js
librarygg_vistime()
:
geom_text()
for labelsggrepel::geom_text_repel()
vistime()
:
assertthat
and re-organization of dependenciesvistime()
no longer uses cumbersome Plotly-subplots. Everything renders in the same plot and can be zoomed seamlessly.gg_vistime()
as new function to output the timeline as a static ggplot (in addition to vistime()
, which outputs an interactive Plotly object).vistime_data()
as new function to output the cleaned and optimized timeline data for your own plotting experiments.showLabels
and lineInterval
have long been deprecated and have now been removed (use show_labels
and background_lines
instead).optimize_y
(default: TRUE
)
optimize_y = TRUE
, use heuristic to optimally distribute events on y axisoptimize_y = FALSE
, use fixed order on y axis according to input dataplotly
only Imports, not Depends)testthat
package, continuous integration using travis
, test code coverage using covr
)showLabels
has been renamed to show_labels
for consistency. A deprecation message is shown.lineInterval
is now deprecated. It was replaced by the new, more intuitive argument background_lines
- the number of lines to draw in the background.showLabels
to choose whether or not the event labels shall be drawn - improves layout of dense timelineslineInterval
: the distance in seconds that vertical lines shall be drawn (to reduce plot size and increase performance). When omitted, a heuristic (as before) is used.linewidth
to override the calculated line width for eventstitle
(a title for the timeline)tooltips
(column name of data that contains individual tooltips)fontcolors
(column name of data that contains color of the event font)colors
argument default to "color" (i.e. if a column color
is present in your data, it will be used for coloring the events)First public release on 29/01/2017