Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timevis(mydata) give only minimal timeline as if I had called timevis() #103

Closed
TMax66 opened this issue Oct 23, 2020 · 3 comments
Closed

Comments

@TMax66
Copy link

TMax66 commented Oct 23, 2020

Hi,
i'm try to get a timeline using timevis, but although data was provided i get only the minimal timeline,
the one obtained by calling the function without arguments

data come from an excel sheet imported by read_excel with date in POSIXct that I converted as character.

> str(mytime)
'data.frame':	15 obs. of  5 variables:
 $ id     : int  1 2 3 4 5 6 7 8 9 9 ...
 $ content: chr  "Presentazione proposta" "Approvazione proposta da parte del CS IZSLER" "Approvazione Ministero e Inizio Progetto" "Inizio attività borsa di studio U.O.1" ...
 $ start  : chr  "2016-09-16" "2016-10-14" "2017-12-15" "2018-02-01" ...
 $ end    : chr  NA NA NA "2019-02-01" ...
 $ type   : chr  "point" "point" "point" "range" ...
> 

I ve no problem using timevisData provided with the package.
Any suggestion?

> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale:
[1] LC_COLLATE=Italian_Italy.1252  LC_CTYPE=Italian_Italy.1252    LC_MONETARY=Italian_Italy.1252 LC_NUMERIC=C                  
[5] LC_TIME=Italian_Italy.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] janitor_2.0.1     rpivotTable_0.3.0 DT_0.15           shiny_1.5.0       readxl_1.3.1      here_0.1          timevis_1.0.0    
 [8] lubridate_1.7.9   forcats_0.5.0     stringr_1.4.0     dplyr_1.0.2       purrr_0.3.4       readr_1.4.0       tidyr_1.1.2      
[15] tibble_3.0.4      ggplot2_3.3.2     tidyverse_1.3.0  

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.5        utf8_1.1.4        assertthat_0.2.1  rprojroot_1.3-2   digest_0.6.25     mime_0.9          R6_2.4.1         
 [8] cellranger_1.1.0  backports_1.1.10  reprex_0.3.0      evaluate_0.14     httr_1.4.2        pillar_1.4.6      rlang_0.4.8      
[15] rstudioapi_0.11   blob_1.2.1        rmarkdown_2.4     htmlwidgets_1.5.2 munsell_0.5.0     broom_0.7.1       compiler_4.0.2   
[22] httpuv_1.5.4      modelr_0.1.8      xfun_0.18         pkgconfig_2.0.3   htmltools_0.5.0   tidyselect_1.1.0  fansi_0.4.1      
[29] crayon_1.3.4      dbplyr_1.4.4      withr_2.3.0       later_1.1.0.1     grid_4.0.2        jsonlite_1.7.1    xtable_1.8-4     
[36] gtable_0.3.0      lifecycle_0.2.0   DBI_1.1.0         magrittr_1.5      scales_1.1.1      cli_2.1.0         stringi_1.5.3    
[43] fs_1.5.0          promises_1.1.1    snakecase_0.11.0  xml2_1.3.2        ellipsis_0.3.1    generics_0.0.2    vctrs_0.3.4      
[50] tools_4.0.2       glue_1.4.2        hms_0.5.3         rsconnect_0.8.16  fastmap_1.0.1     yaml_2.2.1        colorspace_1.4-1 
[57] rvest_0.3.6       knitr_1.30        haven_2.3.1      
> 
@daattali
Copy link
Owner

daattali commented Oct 23, 2020

Could you please provide a full reproducive code example, including code to create the data?

The visual output from str() is not exact and isn't a good way for me to reproduce your problem. I need code that I can copy-paste in order to troubleshoot. Also it looks like you have a lot of packages attached which could be interfering with timevis (not likely, but still possible), try to produce just the bare minimum which means just creating the dataframe.

@TMax66
Copy link
Author

TMax66 commented Oct 24, 2020

Hi Dean, thanks for the answer.
Data came from import excel file. timing.xlsx

this the code:

library(readxl)
library(timevis)
 
mytime<- read_excel("timing.xlsx")
timevis(mytime)

Uploading screenshot.png…

Thanks
Massimo

Repository owner deleted a comment from TMax66 Oct 24, 2020
@daattali
Copy link
Owner

@TMax66 After previously saying your data is invalid, I actually decided to consider this a bug because there was no documentating saying id must be unique. So I now added documentation for that. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants