Questions tagged [vistime]
24 questions
4
votes
1 answer
Data Manipulation/ Imputation for Timeline using R
I am trying to create a timeline using the vistime package in R. The problem I am having is creating rows where data does not exist, to have a continuous timeline.
Manually doing so can be quite tedious and I would like to find a way to automate…

Richard.R
- 217
- 1
- 5
3
votes
1 answer
Problems to change colors in vistime
I recently did the update for the vistime package but since, I cannot change the colors anymore. If I run this code:
pres <- data.frame(Position = rep(c("President", "Vice"), each = 3),
Name = c("Washington", rep(c("Adams",…

Cyrielle Beaubois
- 53
- 5
2
votes
2 answers
Change font in vistime
I want to change the font on the inside of a vistime object, but it happens to only change the axis font.
library(vistime)
dat <- data.frame(event = 1:4, start = c("2019-01-01", "2019-01-10"))
p <- gg_vistime(dat) +
theme(text =…

Karl A
- 165
- 11
2
votes
1 answer
Vertical line in vistime
I am having problems getting a vertical line to show in my vistime block of code (to represent the current year, 2021). Stackoverflow has offered up a plotly (via add_segments) and ggplot (via geom_vline) option to achieve this, but while I dont…

user16812309
- 21
- 2
2
votes
1 answer
Plotly/Vistime - overlapping labels
I have a simple timeline I've built using Vistime/Plotly:
library(vistime)
library(plotly)
data <- read.csv(text="event,group,start,end,color
Bought Apples,Shopping,2020-06-15,2020-10-15,#fed8b1
…

DiamondJoe12
- 1,879
- 7
- 33
- 81
2
votes
1 answer
How to add a vertical line in a vistime plotly?
I want to add a vertical line representing the current date in my vistime plot. I have tried multiple ways and still haven't been able to figure it out.
Here is a small reproducible code that you can build…

Mriti Agarwal
- 204
- 1
- 7
2
votes
2 answers
R Timeline Without Dates
I'm trying to make a timeline like you'd make with any of the timevis, vistime, or timeline R packages, but I'm only interested in times and not dates. I don't mind putting a placeholder date in there, but it seems that all of these packages require…

Matt
- 126
- 10
1
vote
2 answers
Is there a way to change marker size and label font size in an R gg_vistime timeline?
There are examples available of changing marker size in plotly objects created with vistime() (e.g. as below), but I am having trouble figuring out how to do the same thing for a ggplot2 object made with gg_vistime(). Ideally I would like to be able…

jgp
- 21
- 2
1
vote
1 answer
Merging Timelines Together to Make One Timeline Using Vistime Package in R
When attempting to create a timeline via vistime an overlap in the dates produces a graphic more like a gantt chart which is undesirable. I wish to have one continous timeline.
Below I have shown the current issue and the desired result.
Current…

Richard.R
- 217
- 1
- 5
0
votes
0 answers
Shrink whitespace in gg_vistime plot
I am looking to shrink the white space around my timeline in the gg_vistime function. Here is the code to produce my plot. Plot is attached.
library(ggplot2)
library(ggvis)
library(vistime)
library(ggpubr)
data <-…

Emily
- 57
- 6
0
votes
0 answers
Vistime using years not dates
I'm creating a timeline using vistime and there are two problems.
It is always trying to show the graph with dates from 01/01/1970 rather than the years I have put in the dataset. How do I do it has number
As it is a timeline of prehistoric events…
0
votes
0 answers
gg_vistime: How can I tweak the x axis without running into POSIXct problems?
My x axis describes a timeline measured in years, with 50 years intervals. I want to set the starting year to 649 and the end year to 1258 and have them appear in the plot, and I try to use the scale_x_datetime function for this. I get an error…

jacobhoi
- 35
- 5
0
votes
0 answers
Reproduce gantt chart with plotly
I have made a gantt plot with the vistime library in R and want to reproduce it with plotly.
Here's the result with vistime package
and the result with plotly
The problem is the vistime plot there are dots indicating the end of the case but there…

Alanq
- 121
- 3
- 10
0
votes
2 answers
Plotting historical periods in a timeline using R and vistime-package, BC not possible
for a research-project i want to plot a historical timeline with ruling-periods of ancient dynasties; seperated into male and female rulers.
I'm using R and the vistime-package (as suggested here). Generally it works, but the problem is that i can't…

lukeflo
- 125
- 5
0
votes
0 answers
Using Vistime with R Shiny to create a timeline with a group dropdown filter
I'm using the vistime R package to create a timeline in R Shiny. I'm looking to add a "Name" filter so the user would select a name from the dropdown, and then the timeline would only show be for the name selected. Below is example code. Rather than…

joers
- 1