Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ggplot2]

ggplot2 is an actively maintained open-source chart-drawing package for R, written by Hadley Wickham, based upon the principles of "Grammar of Graphics". It partially replaces R's basic plot and the lattice package, while providing a clean, powerful, orthogonal and fun API.

1
vote
1answer
18 views

How to make a Power Spectral Density Plot in R

I have a time series point process representing neuron spikes. I have computed and plotted autocovariance using acf but now I need to plot the Power Spectral ...
0
votes
2answers
294 views

How to plot using facet_wrap, over multiple pages as a .pdf files in r cran

I am using ggplot, to compare 114 unique studies for a particular variable I'm interested in. This is what I have used. ggplot(steps, aes(x=factor(edu))) + geom_bar(aes(y = (..count..), group = ...
0
votes
0answers
422 views

How to use ggplot, geom_bar to plot counts for categorical variables

I have a huge data set. My response variable is called edu, and I have several group ids under the column named id_study. There are 113 unique studies for the id_study. There are many categories of ...
0
votes
0answers
28 views

What can I learn from this graph?

I have just started learning Data Science. Here is visualization of vehicle data from EPA: X-axis = displacement of vehicle Y-axis = highway mileage Right-Side of graph: f = front-drive, r = rear-...
3
votes
2answers
489 views

When Should I Use ggplot2 Instead of Tableau? [closed]

I am a student getting started with Tableau for the first time. My proficiency with ggplot2 is intermediate. I can create custom versions of the most popular kinds of charts in ggplot2 but nothing too ...
-1
votes
2answers
50 views

Two quantities visualization

I have a problem figuring out how to visualize two simple quantities using R. I want to compare their size by visualizing two proportional spatial figures next to each other and the size proportional ...
1
vote
0answers
21 views

Visualising 2-step sequence data to spot the differences among two different user groups

I have the following data frame for a certain user group. Basically, it shows the current page, and the previous page visited across all users. For example, 81 users come from BLQ2_2 to visit BLQ2_1. ...
4
votes
1answer
1k views

R recommendations while applying ggplot2 and plotly together to plot a graph

I have data frame having 3 columns namely index, Actual & Predicted (all column are numeric). I am using 2 packages plotly & ...
1
vote
0answers
31 views

Infoviz for multinomials: miniature plots within plots in R's ggplot

I'm plotting fluctuations in a trinomial distribution across two dimensions. ...
3
votes
1answer
496 views

How to plot two distribution curves in a faceted way in R/ggplot2?

I have two probability distribution curves, a Gamma and a standarized Normal, that I need to compare: ...
0
votes
1answer
157 views

Interactive Data Visualisations

So I have finally gotten a hold of ggplot2 and ggvis packages and tried out shiny too to have interactive graphics and visualizations. but i have been using Power BI before and came to R as a an good ...
0
votes
2answers
3k views

How to summarize(add) a column according to same year and plot in R?

I have following type of data. But I would like to have graph with X-axis as Year and add all the sales added up in that year on Y- axis. The Data frame name is salesdata. I have nearly 8000 rows of ...
0
votes
1answer
2k views

Python: ggplot geom_histogram() binwidth or bin parameter missing?

I am unable to change number of bins when using geom_histogram() function. There is nothing in the documention, except some examples where binwidth=X is used (which is how R:ggplot2 uses it). However, ...
-1
votes
1answer
233 views

How to get 2D-Array of boxplots without the diagonal with R (python also accepted)?

I want to do comparison between different factors with box plots. One factor doesn't compare with it self. So I need a matrix of boxplots (wich I could get using <...
6
votes
2answers
484 views

Represent time-series data in much compact form

I have time series data of one month plotted day-wise as Notice every day follows a different pattern. Now, I want to show this "diversity in pattern" of each day in much compact form in a research ...
10
votes
2answers
2k views

ggvis vs. ggplot2+Shiny; which one to choose for interactive visualization?

There is a similar question here in CrossValidated, and I have read the answers. My question is a bit different. I don't want to merely visualize my data, and indeed what I want to visualize is not ...
2
votes
1answer
115 views

R: lattice equivalent of density2d in ggplot?

What would be the equivalent of geom_density2d in lattice? In essence I'm trying to create this graph with lattice: I don't think contourplot or levelplot is what i want and when trying it, it gives ...
1
vote
1answer
340 views

Manage x-axis using ggplot()

Source: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip Here is my data prep. ...