In ggpar()
, now legend.title
can be either a character vector, e.g.: legend.title = “Species” or a list, legend.title = list(color = "Species", linetype = "Species", shape = "Species")
.
New argument ellipse.border.remove
in ggscatter()
to remove ellipse border lines.
ggscatter(mtcars, x = "mpg", y = "wt",
color = "cyl",
ellipse = TRUE, mean.point = TRUE,
ellipse.border.remove = TRUE)
ggscatter
(), the argument mean.point
now reacts to fill color.Support for text justification added in ggtexttable()
([@cj-wilson, #15](https://github.com/kassambara/ggpubr/issues/18))
The function ggpie()
can now display japanese texts. New argument font.family
in ggpie
() and in ggpar()
([@tomochan001, #15](https://github.com/kassambara/ggpubr/issues/15)).
Using time on x axis works know with ggline()
and ggbarplot()
([@jcpsantiago, #15](https://github.com/kassambara/ggpubr/issues/17)).
stat_compare_means()
now reacts to hide.ns
properly.drawDetails.splitText()
exported so that the function ggparagraph()
works properly.ggbarplot()
, now labels correspond to the true size of bars ([@tdelhomme, #15](https://github.com/kassambara/ggpubr/issues/15)).stat_compare_means()
now keep the default order of factor levels ([@RoKant, #12](https://github.com/kassambara/ggpubr/issues/12)).gradient_color()
and gradient_color()
: change gradient color and fill palettes.clean_theme()
: remove axis lines, ticks, texts and titles.get_legend()
: to extract the legend labels from a ggplot object.as_ggplot()
: Transform the output of gridExtra::arrangeGrob()
and gridExtra::grid.arrange()
to a an object of class ggplot.ggtexttable()
: to draw a textual table.ggparagraph()
: to draw a paragraph of text.annotate_figure()
to annotate (arranged) ggplots.text_grob()
to create easily a customized text graphical object.background_image()
to add a background image to a ggplot.theme_transparent()
to create a ggplot with transparent background.gghistogram()
, density curve and rug react to the fill color.ggarrange()
:
àlign
to specify whether graphs in the grid should be horizontally (“h”) or vertically (“v”) aligned.legend
to remove or specify the legend position when arranging multiple plots.common.legend
to create a common unique legend for multiple plots.ggarrange()
to arrange multiple ggplots on the same page.ggexport()
to export one or multiple ggplots to a file (pdf, eps, png, jpeg).ggpaired()
to plot paired data.compare_means()
to compare the means of two or multiple groups. Returns a data frame.stat_compare_means()
to add p-values and significance levels to plots.stat_cor()
to add correlation coefficients with p-values to a scatter plot.stat_stars()
to add stars to a scatter plot.Now, the argument y
can be a character vector of multiple variables to plot at once. This might be useful in genomic fields to plot the gene expression levels of multiple genes at once. see ggboxplot()
, ggdotplot()
, ggstripchart()
, ggviolin()
, ggbarplot()
and ggline
.
The argument x
can be a vector of multiple variables in gghistogram()
, ggdensity()
, ggecdf()
and ggqqplot()
.
font()
to change the appearance of titles and labels.rotate_x_text()
and rotate_y_text()
to rotate x and y axis texts.rotate()
to rotate a ggplot for creating horizontal plot.set_palette()
or change_palette()
to change a ggplot color palette.border()
to add/change border lines around a ggplot.bgcolor()
to change ggplot panel background color.rremove()
to remove a specific component from a ggplot.grids()
to add grid lines.xscale()
and yscale()
to change axis scale.facet()
added to create multi-panel plots (#5).add_summary()
to add summary statistics.ggadd()
to add summary statistics or a geometry onto a ggplot.New data set added: gene_citation
New arguments in ggpar()
: x.text.angle
and y.text.angle
ggboxplot()
, ggdotplot()
, ggstripchart()
, ggviolin()
, ggbarplot()
and ggline
:
combine
added to combine multiple y variables on the same graph.merge
to merge multiple y variables in the same ploting area.select
to select which item to display.remove
to remove a specific item from a plot.order
to order plot items.label, font.label, label.select, repel, label.rectangle
to add and customize labelsfacet.by, panel.labs and short.panel.labs
: support for faceting and customization of plot panelsNew argument grouping.vars
in ggtext()
. Grouping variables to sort the data by, when the user wants to display the top n up/down labels.
theme_pubr()
:
palette
Can be also a numeric vector of length(groups); in this case a basic color palette is created using the function grDevices::palette()
.Now, ggpar()
reacts to palette when length(palette) = 1 and palette is a color name #3.
ggmaplot()
now handles situations, wehre there is only upregulated, or downlegulated gnes.
get_palette()
to generate a palette of k colors from ggsci palettes, RColorbrewer palettes and custom color palettes. Useful to extend RColorBrewer and ggsci to support more colors.ggpar()
function can handle a list of ggplots.right
.show.legend.text
in the ggscatter()
function. Use show.legend.text = FALSE to hide text in the legend.title, submain, subtitle, caption, font.submain, font.subtitle, font.caption
in the ggpar()
function.font.family
in ggscatter()
.ggdensity
(gghistogram
) are now shown if data have NA values [@chunkaowang, #1](https://github.com/kassambara/ggpubr/issues/1)ggtext()
for textual annotation.ggscatter()
. A logical value. If TRUE, a star plot is generated.geom_exec()
. A helper function used by ggpubr functions to execute any geom_xx functions in ggplot2. Useful only when you want to call a geom_xx function without carrying about the arguments to put in ggplot2::aes()
.ggbarplot()
.
theme_classic2()
added. Classic theme with axis lines.ggboxplot()
, ggviolin()
, ggdotplot()
, ggstripchart()
, gghistogram()
, ggdensity()
, ggecdf()
and ggqqplot()
can now handle one single numeric vector.# Example
ggboxplot(iris$Sepal.Length)
gghistogram()
, when add_density = TRUE, y scale remains = “..count..”.