Comments (13)
from rtweetxtras.
The warning about colour scales is due to some laziness on my part. I have a number of "if" checks for colour scales where some should be "if... else". This won't effect the plot, it's just a warning because two colour scales have been defined in sequence. Only the final one is used.
I can't reproduce the 'origin must be supplied' error. Can you share the data that you're getting it with as a gist?
It is likely happening with a date vector somewhere, but I can't reproduce.
Thanks for the feedback.
from rtweetxtras.
from rtweetxtras.
Hi, I still can't reproduce the error. I have changed one small item, and have committed a new version this morning to fix the warnings about colour scales. Please try download and try again and tell me if you still have the issue.
from rtweetxtras.
from rtweetxtras.
from rtweetxtras.
Hi, as I said, I wasn't able to reproduce the issue. Can you let me know what system you're using? MacOS, Windows, Linux? Also please let me know which version of R & RStudio
I don't have access to a Windows machine to test, but have tested on a Linux machine. Seems ok.
There shouldn't be an issue with dates between countries, we're using rtweet which stores the dates according to the system timezone.
from rtweetxtras.
from rtweetxtras.
I'm going to find someone with windows to test.
from rtweetxtras.
from rtweetxtras.
I've made another change to that particular plot function which may fix the issue for you. If you have some time, please download the latest version (0.2.5.0000) and test.
Thanks for your help in picking up the issues.
from rtweetxtras.
Using the scale_color_viridis_c
function in ggplot with dates converts the labels with dates to numbers, so it is necessary to force them back to dates.
I was previously using this option to do this:
labels = lubridate::as_date
And it seemed to work fine on all 'nix based OS (Linux/MacOS) because lubridate uses the Unix epoch and has an intrinsic origin date of "1970-01-01". It seems that this isn't standard in Windows and I can't figure out how to specify the origin without introducing other errors.
So I searched on stackoverflow 😄
Instead of using as_date
, I added a different option to the scale_colour_viridis_c
function.
trans = "date"
from rtweetxtras.
from rtweetxtras.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtweetxtras.