Gang Of Coders
Home
About Us
Contact Us
All Ggplot2 Solutions on Gang of Coders
Total of 241 Ggplot2 Solutions
Rotating and spacing axis labels in ggplot2
R
Ggplot2
Label
How can we make xkcd style graphs?
R
Ggplot2
Plot
Plot two graphs in same plot in R
R
Plot
Ggplot2
R Faq
How to change legend title in ggplot
R
Plot
Ggplot2
Side-by-side plots with ggplot2
R
Ggplot2
Visualization
R Faq
How to set limits for axes in ggplot2 R plots?
R
Plot
Ggplot2
Order Bars in ggplot2 bar graph
R
Ggplot2
R Faq
Plotting two variables as lines using ggplot2 on the same graph
R
Ggplot2
Graph
Time Series
R Faq
Center Plot title in ggplot2
R
Ggplot2
Center
Ggtitle
How to save a plot as image on the disk?
R
Plot
Ggplot2
Lattice
R Faq
Remove legend ggplot 2.2
R
Ggplot2
Legend
Remove all of x axis labels in ggplot
R
Ggplot2
ggplot with 2 y axes on each side and different scales
R
Ggplot2
R Faq
Add regression line equation and R^2 on graph
R
Ggplot2
Linear Regression
R Faq
How to change facet labels?
R
Ggplot2
Symbols
Facet
Plotmath
Turning off some legends in a ggplot
R
Ggplot2
Emulate ggplot2 default color palette
R
Ggplot2
Increase number of axis ticks
R
Ggplot2
Changing font size and direction of axes text in ggplot2
R
Ggplot2
ggplot2 line chart gives "geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?"
R
Ggplot2
R Faq
Label points in geom_point
R
Plot
Ggplot2
Labeling
Ggrepel
Change size of axes title and labels in ggplot2
R
Ggplot2
How to assign colors to categorical variables in ggplot2 that have stable mapping?
R
Ggplot2
How can I handle R CMD check "no visible binding for global variable" notes when my ggplot2 syntax is sensible?
R
Ggplot2
Show percent % instead of counts in charts of categorical variables
R
Ggplot2
Annotating text on individual facet in ggplot2
R
Ggplot2
Facet
Facet Wrap
Facet Grid
What do hjust and vjust do when making a plot using ggplot?
R
Plot
Ggplot2
Force the origin to start at 0
R
Plot
Ggplot2
Axes
Most underused data visualization
Graphics
R
Visualization
Plot
Ggplot2
Add a common Legend for combined ggplots
R
Ggplot2
Legend
Gridextra
Ignore outliers in ggplot2 boxplot
R
Ggplot2
Remove 'a' from legend when using aesthetics and geom_text
R
Ggplot2
Legend
Aesthetics
ggplot2 plot without axes, legends, etc
R
Ggplot2
Add legend to ggplot2 line plot
R
Ggplot2
Legend
R Faq
increase legend font size ggplot2
R
Ggplot2
Editing legend (text) labels in ggplot
R
Text
Ggplot2
Label
How to use a variable to specify column name in ggplot
R
Ggplot2
Tidyeval
R Faq
Nse
Saving grid.arrange() plot to file
R
Ggplot2
Gridextra
Adding a regression line on a ggplot
R
Ggplot2
Regression
Linear Regression
How to change line width in ggplot?
R
Ggplot2
Line Plot
How do I change the formatting of numbers on an axis with ggplot?
R
Ggplot2
Scatterplot with marginal histograms in ggplot2
R
Ggplot2
Histogram
Scatter Plot
Is there a way to change the spacing between legend items in ggplot2?
R
Ggplot2
Legend
ggplot does not work if it is inside a for loop although it works outside of it
R
For Loop
Ggplot2
Reorder bars in geom_bar ggplot2 by value
R
Ggplot2
facet label font size
R
Ggplot2
Order discrete x scale by frequency/value
R
Ggplot2
R Faq
ggplot: How to increase spacing between faceted plots?
R
Ggplot2
How to make graphics with transparent background in R using ggplot2?
R
Graphics
Transparency
Ggplot2
Remove space between plotted data and the axes
R
Plot
Ggplot2
Force R to stop plotting abbreviated axis labels - e.g. 1e+00 in ggplot2
R
Graph
Ggplot2
Axes
Persistent invalid graphics state error when using ggplot2
R
Ggplot2
Setting individual axis limits with facet_wrap and scales = "free" in ggplot2
R
Ggplot2
Facet
Overlaying histograms with ggplot2 in R
R
Ggplot2
How can I change the Y-axis figures into percentages in a barplot?
R
Ggplot2
Bar Chart
remove legend title in ggplot
R
Ggplot2
How to use Greek symbols in ggplot2?
R
Graphics
Unicode
Utf 8
Ggplot2
Limit ggplot2 axes without removing data (outside limits): zoom
R
Ggplot2
Zooming
Limits
Create a matrix of scatterplots (pairs() equivalent) in ggplot2
R
Ggplot2
Visualization
Showing data values on stacked bar chart in ggplot2
R
Graphics
Ggplot2
adding x and y axis labels in ggplot2
R
Label
Ggplot2
Fixing the order of facets in ggplot
R
Ggplot2
Sequence
Facet
Increase distance between text and title on the y-axis
R
Layout
Plot
Ggplot2
How to get a vertical geom_vline to an x-axis of class date?
R
Date
Ggplot2
Time Series
Changing fonts in ggplot2
R
Ggplot2
Fonts
Extrafont
Showtext
Position geom_text on dodged barplot
R
Plot
Ggplot2
Bar Chart
How to draw an empty plot?
R
Ggplot2
Plot
Remove grid, background color, and top and right borders from ggplot2
R
Ggplot2
ggplot geom_text font size control
R
Ggplot2
ggplot2 legend to bottom and horizontal
R
Ggplot2
ggplot2 keep unused levels barplot
R
Ggplot2
Legend
Levels
How to put labels over geom_bar for each bar in R with ggplot2
R
Ggplot2
Bar Chart
How do I change the background color of a plot made with ggplot2
R
Ggplot2
Remove extra legends in ggplot2
R
Ggplot2
Legend
How to add texture to fill colors in ggplot2
R
Ggplot2
group by two columns in ggplot2
R
Ggplot2
How do I arrange a variable list of plots using grid.arrange?
R
Ggplot2
How to change the default font size in ggplot2
R
Ggplot2
Default
Font Size
How can I manipulate the strip text of facet_grid plots?
R
Ggplot2
How do you specifically order ggplot2 x axis instead of alphabetical order?
R
Ggplot2
R Faq
Left align two graph edges (ggplot)
R
Ggplot2
Gridextra
Gtable
ggplot2 plot area margins?
R
Ggplot2
Data Visualization
How to display only integer values on an axis using ggplot2
R
Ggplot2
How to left align text in annotate from ggplot2
R
Ggplot2
Text Alignment
Annotate
How can I extract plot axes' ranges for a ggplot2 object?
R
Ggplot2
can I change the position of the strip label in ggplot from the top to the bottom?
R
Ggplot2
Strip
Facet
Plot labels at ends of lines
R
Ggplot2
Legend
Explain ggplot2 warning: "Removed k rows containing missing values"
R
Ggplot2
Remove facet_wrap labels completely
R
Graphics
Ggplot2
How to deal with "data of class uneval" error from ggplot2?
R
Ggplot2
How to add a ggplot2 subtitle with different size and colour?
R
Ggplot2
Subtitle
How to increase the size of points in legend of ggplot2?
R
Ggplot2
Choosing between qplot() and ggplot() in ggplot2
R
Ggplot2
How to fix the aspect ratio in ggplot?
R
Ggplot2
Plot correlation matrix into a graph
R
Ggplot2
Plot
Correlation
geom_smooth() what are the methods available?
R
Ggplot2
R ggplot2: stat_count() must not be used with a y aesthetic error in Bar graph
R
Ggplot2
Bar Chart
Combine legends for color and shape into a single legend
R
Ggplot2
How to save plots that are made in a shiny app
R
Ggplot2
Shiny
ggplot plots in scripts do not display in Rstudio
R
Ggplot2
Rstudio
How can I obtain an 'unbalanced' grid of ggplots?
R
Ggplot2
R Grid
Legend on bottom, two rows wrapped in ggplot2 in r
R
Ggplot2
Legend
How can I suppress the vertical gridlines in a ggplot2 plot?
R
Ggplot2
How can I arrange an arbitrary number of ggplots using grid.arrange?
R
Ggplot2
set only lower bound of a limit for ggplot
R
Ggplot2
Is there a built-in way to do a logarithmic color scale in ggplot2?
R
Ggplot2
ggplot combining two plots from different data.frames
R
Ggplot2
How do you add a general label to facets in ggplot2?
R
Label
Facet
Ggplot2
Control point border thickness in ggplot
R
Ggplot2
Border
Point
Thickness
What's the difference between facet_wrap() and facet_grid() in ggplot2?
R
Ggplot2
Facet Wrap
Saving a high resolution image in R
R
Ggplot2
Publish
Tiff
Changing line colors with ggplot()
R
Ggplot2
How to set legend alpha with ggplot2
R
Ggplot2
Plot multiple boxplot in one graph
R
Plot
Ggplot2
Boxplot
Construct a manual legend for a complicated plot
R
Data Visualization
Ggplot2
ggplot2: Adjust the symbol size in legends
R
Ggplot2
Shift legend into empty facets of a faceted plot in ggplot2
R
Ggplot2
How to move or position a legend in ggplot2
R
Ggplot2
Legend
Legend Properties
Subscript letters in ggplot axis label
R
Ggplot2
Avoid ggplot sorting the x-axis while plotting geom_bar()
R
Ggplot2
How to plot a function curve in R
R
Ggplot2
Plot
Lattice
R Faq
ggplot2 - annotate outside of plot
R
Annotations
Ggplot2
Controlling ggplot2 legend display order
R
Ggplot2
Error: package or namespace load failed for ggplot2 and for data.table
R
Ggplot2
data.table
Using ggplot2, can I insert a break in the axis?
R
Ggplot2
R Faq
Combine base and ggplot graphics in R figure window
R
Plot
Ggplot2
Base
Biwavelet
Error: could not find function "unit"
R
Ggplot2
ggplot2 reverse order of scale_brewer
R
Ggplot2
Any way to make plot points in scatterplot more transparent in R?
R
Plot
Ggplot2
Alpha
Boxplot show the value of mean
R
Ggplot2
Control ggplot2 legend look without affecting the plot
R
Plot
Ggplot2
Legend
Create stacked barplot where each stack is scaled to sum to 100%
R
Ggplot2
Adding custom image to geom_polygon fill in ggplot
R
Ggplot2
Plot a function with ggplot, equivalent of curve()
R
Ggplot2
Plot
How to save a plot made with ggplot2 as SVG
R
Svg
Ggplot2
R pass variable column indices to ggplot2
R
Ggplot2
Dataframe
ggplot2, facet_grid, free scales?
R
Ggplot2
Legend placement, ggplot, relative to plotting region
R
Ggplot2
R knitr Markdown: Output Plots within For Loop
R
Ggplot2
Knitr
Rstudio
Creating multi column legend in ggplot
R
Plot
Ggplot2
Wrap long axis labels via labeller=label_wrap in ggplot2
R
Ggplot2
Plot
Axis Labels
Plotting with ggplot2: "Error: Discrete value supplied to continuous scale" on categorical y-axis
R
Ggplot2
Scale
Categorical Data
R Factor
Custom legend for multiple layer ggplot
R
Ggplot2
ggplot2 bar plot, no space between bottom of geom and x axis keep space above
R
Ggplot2
Formatting dates with scale_x_date in ggplot2
R
Date
Formatting
Ggplot2
Formatting dates on X axis in ggplot2
R
Ggplot2
ggplot2 two-line label with expression
R
Ggplot2
R Plotting confidence bands with ggplot
R
Ggplot2
ggplot2: facet_wrap strip color based on variable in data set
R
Ggplot2
Facet Wrap
How do I change the number of decimal places on axis labels in ggplot2?
R
Ggplot2
Change bar plot colour in geom_bar with ggplot2 in r
R
Ggplot2
Colors
Geom Bar
How to put labels over geom_bar in R with ggplot2
R
Ggplot2
Draw a circle with ggplot2
R
Ggplot2
Geometry
Controlling the order of points in ggplot2?
R
Ggplot2
Rpy2
if else condition in ggplot to add an extra layer
R
If Statement
Ggplot2
Reverse order of discrete y axis in ggplot2
R
Ggplot2
geom_rect and alpha - does this work with hard coded values?
R
Ggplot2
Alpha Transparency
Subset and ggplot2
R
Ggplot2
Subset
How to merge color, line style and shape legends in ggplot
R
Ggplot2
List of ggplot2 theme options?
R
Ggplot2
How to increase the space between the bars in a bar plot in ggplot2?
R
Ggplot2
extract hours and seconds from POSIXct for plotting purposes in R
R
Datetime
Ggplot2
Lubridate
Understanding dates and plotting a histogram with ggplot2 in R
R
Datetime
Ggplot2
Histogram
Is there a table or catalog of aesthetics for ggplot2?
R
Ggplot2
How to italicize part (one or two words) of an axis title
R
Ggplot2
Axis
ggplot's qplot does not execute on sourcing
R
Ggplot2
R Faq
Controlling line color and line type in ggplot legend
R
Ggplot2
controlling order of facet_grid/facet_wrap in ggplot2?
R
Ggplot2
Using `geom_line()` with X axis being factors
R
Ggplot2
Manually setting group colors for ggplot2
R
Colors
Ggplot2
Putting x-axis at top of ggplot2 chart
R
Ggplot2
Modifying fonts in ggplot2
R
Ggplot2
How to install development version of R packages github repository
R
Github
Ggplot2
Place a border around points
R
Ggplot2
Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : Polygon edge not found
R
Ggplot2
When using "geom_histogram" there is error "unit(tic_pos.c, "mm") : 'x' and 'units' must have length > 0". Why
R
Ggplot2
Multi-row x-axis labels in ggplot line chart
R
Ggplot2
Add panel border to ggplot2
R
Plot
Ggplot2
ggplot2, change title size
R
Data Visualization
Ggplot2
Adding vertical line in plot ggplot
R
Ggplot2
R + ggplot : Time series with events
R
Ggplot2
Visualization
Graphing
How to extract the fill colours from a ggplot object?
R
Ggplot2
How to suppress warnings when plotting with ggplot
R
Ggplot2
ggplot2: sorting a plot
R
Ggplot2
Customize axis labels
R
Ggplot2
Overlay histogram with density curve
R
Ggplot2
Histogram
How can I remove the legend title in ggplot2?
R
Ggplot2
Legend
Putting mathematical symbols and subscripts mixed with regular letters
R
Ggplot2
Mathematical Typesetting
qqnorm and qqline in ggplot2
R
Ggplot2
Ggproto
Method to extract stat_smooth line fit
R
Ggplot2
Stat
Inserting an image to ggplot2
R
Ggplot2
ggplot legends - change labels, order and title
R
Ggplot2
How can I make consistent-width plots in ggplot (with legends)?
R
Ggplot2
Change facet label text and background colour
R
Ggplot2
Add a dotted vertical line on certain x-axis values using ggplot
R
Ggplot2
Horizontal Barplot in ggplot2
R
Ggplot2
Force ggplot2 scatter plot to be square shaped
R
Ggplot2
Scatter Plot
How to make geom_text plot within the canvas's bounds
R
Text
Plot
Ggplot2
Transform only one axis to log10 scale with ggplot2
R
Ggplot2
Boxplot
Scaletransform
Rescaling the y axis in bar plot causes bars to disappear : R ggplot2
R
Ggplot2
Adding table within the plotting region of a ggplot in r
R
Plot
Ggplot2
Extract data from a ggplot
R
Ggplot2
Histogram
ggplot: remove lines at ribbon edges
R
Ggplot2
ggplot2: Is there a fix for jagged, poor-quality text produced by geom_text()?
R
Ggplot2
Consistent width for geom_bar in the event of missing data
R
Ggplot2
Rotate switched facet labels in ggplot2 facet_grid
R
Plot
Ggplot2
Facet Grid
Make the background of a graph different colours in different regions
R
Ggplot2
Normalizing y-axis in histograms in R ggplot to proportion
R
Plot
Ggplot2
Histogram
changing title in multiplot ggplot2 using grid.arrange
R
Ggplot2
Gridextra
Split violin plot with ggplot2
R
Ggplot2
Violin Plot
Ggproto
ggplot2 pdf import in Adobe Illustrator missing font AdobePiStd
R
Ggplot2
Adobe Illustrator
Grouped bar plot in ggplot
R
Ggplot2
Bar Chart
Reshape
Reshape2
Inverse of ggplotGrob?
R
Ggplot2
Grob
Number formatting axis labels in ggplot2?
R
Ggplot2
How can I add freehand red circles to a ggplot2 graph?
R
Ggplot2
How to annotate() ggplot with latex
R
Ggplot2
heatmap with values (ggplot2)
R
Ggplot2
Adjust Transparency (alpha) of stat_smooth lines, not just transparency of Confidence Interval
R
Ggplot2
Transparency
Alpha
How to combine 2 plots (ggplot) into one plot?
R
Graph
Plot
Ggplot2
Visualization
Save multiple ggplots using a for loop
R
For Loop
Ggplot2
How to control ordering of stacked bar chart using identity on ggplot2
R
Ggplot2
Specify widths and heights of plots with grid.arrange
R
Plot
Ggplot2
Gridextra
customize ggplot2 axis labels with different colors
R
Ggplot2
Geom Bar
ggmap Error: GeomRasterAnn was built with an incompatible version of ggproto
R
Ggplot2
Ggmap
Ggproto
ggplot2 avoid boxes around legend symbols
R
Ggplot2
How to plot just the legends in ggplot2?
R
Ggplot2
Igraph
Fill and border colour in geom_point (scale_colour_manual) in ggplot
R
Colors
Ggplot2
How do I change the NA color from gray to white in a ggplot choropleth map?
R
Ggplot2
Maps
Choropleth
ggplot2 - The unit of size
R
Ggplot2
How to use an image as a point in ggplot?
R
Ggplot2
Ggproto
Use of ggplot() within another function in R
R
Ggplot2
Ordering of bars in ggplot
R
Ggplot2
Bar Chart
How to control number of minor grid lines in ggplot2?
R
Ggplot2
Put whisker ends on boxplot
R
Ggplot2
Boxplot
How do you order the fill-colours within ggplot2 geom_bar
R
Graphics
Ggplot2
ggplot2 increase space between legend keys
R
Ggplot2
How to draw a nice arrow in ggplot2
R
Ggplot2
Arrows
Looping over variables in ggplot
R
For Loop
Ggplot2
Tidyeval
Nse
ggplot2: histogram with normal curve
R
Ggplot2
Curve
How to add different lines for facets
R
Ggplot2
Facet
Plot data in descending order as appears in data frame
R
Ggplot2