Giter Site home page Giter Site logo

Comments (13)

RomainSohier avatar RomainSohier commented on June 12, 2024 1

from rtweetxtras.

Arf9999 avatar Arf9999 commented on June 12, 2024

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.

RomainSohier avatar RomainSohier commented on June 12, 2024

from rtweetxtras.

Arf9999 avatar Arf9999 commented on June 12, 2024

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.

image

from rtweetxtras.

RomainSohier avatar RomainSohier commented on June 12, 2024

from rtweetxtras.

RomainSohier avatar RomainSohier commented on June 12, 2024

from rtweetxtras.

Arf9999 avatar Arf9999 commented on June 12, 2024

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.

RomainSohier avatar RomainSohier commented on June 12, 2024

from rtweetxtras.

Arf9999 avatar Arf9999 commented on June 12, 2024

I'm going to find someone with windows to test.

from rtweetxtras.

RomainSohier avatar RomainSohier commented on June 12, 2024

from rtweetxtras.

Arf9999 avatar Arf9999 commented on June 12, 2024

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.

Arf9999 avatar Arf9999 commented on June 12, 2024

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.

RomainSohier avatar RomainSohier commented on June 12, 2024

from rtweetxtras.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.