Giter Site home page Giter Site logo

Comments (10)

sckott avatar sckott commented on June 16, 2024

Hi @mfenner

Do you think you could help me get started with this by helping me get just one of your visualizations into this package? I looked at plosOpenR, but I am not sure how to proceed as the visualization functions use data that was saved previously.

from alm.

mfenner avatar mfenner commented on June 16, 2024

We could start with a simple example of a Venn Diagram showing the subset of articles mentioned in F1000 and Wikipedia, and how the two overlap. I have created a Gist for this at https://gist.github.com/mfenner/6662304.

from alm.

sckott avatar sckott commented on June 16, 2024

Great, thanks for this.

from alm.

sckott avatar sckott commented on June 16, 2024

@mfenner Try these examples:

https://github.com/ropensci/alm/blob/master/R/plot_density.R#L15-L24

I did use ggplot2 instead of base plots as it's easier to do faceting, e.g, passing multiple data sources into the function can give you a density plot for each data source.

from alm.

sckott avatar sckott commented on June 16, 2024

associated commit 2014a4e

from alm.

mfenner avatar mfenner commented on June 16, 2024

The example Gist looks great. I would make #1447f2 the default color and I would add title and description as parameters for the function call so that they can be easily customized.

from alm.

sckott avatar sckott commented on June 16, 2024

Okay, I will use #1447f2 instead, and and title and description as parameters.

from alm.

sckott avatar sckott commented on June 16, 2024

Okay, @mfenner Density changed a bit, titles and axis labels use that blue color, and histograms are an option. .Title and description can be passed as arguments. A vector of colors can be passed in when plotting multiple data sources. The color parameter only affects the color of the density/histogram plots now, not the text on the plots (which is internal to the fxn)

from alm.

mfenner avatar mfenner commented on June 16, 2024

Looks great! And comes at a perfect time, as I wanted to look at density plots of citations by subject area, much easier with the ggplot2 facetting.

from alm.

sckott avatar sckott commented on June 16, 2024

Great

from alm.

Related Issues (20)

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.