D3.js or ggplot2?

I am a newbie in R, and looking for a data visualization tool for practice with R,  D3 or ggplot2 should I select?

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Compare these two data visualization tools:


    D3.js is an open-source JavaScript library that’s used to create data visualizations with HTML, SVG, and CSS. D3 allows you to handle the Document Object Model (DOM) based on your data.

    D3 is the best chart gallery, which also can be applied with Python or R.
    I would recommend you use Javascript or R other than Python considering the Python-nvd3 library last updated in 2016, which is outdated compared to others. D3.js is highly flexible while hard for newbies.

    Suitable crowd:front-end developers who are good at Javascript, SVG or DOM
    Cost: Free



    ggplot2 is a data visualization package for the statistical programming language R. The idea of ggplot2 is to separate the drawing from the data. It is to make the drawing according to layers, which is conducive to architectural thinking.

    For professionals who need making plots involving mountains of data, ggplot2 is the best choice. It is easy and quick to build plots in layers to display complex stories. You can define various underlying components and simple functions to achieve complex charts.

    Suitable crowd: professionals with R knowledge
    Cost: quote-based


    Post in https://www.quora.com/What-are-some-good-data-visualization-tools/answer/Lewis-Chou, hope can help you.

  • Great breakdown Lewis Chou ! Here is a Mode report using each of the two! Feel free to borrow from the logic therein.  

    ggPlot: https://app.mode.com/modeanalytics/reports/68c9afdb6677

    D3: https://app.mode.com/modeanalytics/reports/31bad451bd03

Like1 Follow
  • Status Answered
  • 7 mths agoLast active
  • 2Replies
  • 76Views
  • 3 Following