-
new
fortify_matrix.GISTIC
method forGISTIC
object frommaftools
package. -
+
operator now will respectwith_quad()
. -
new
ggalign_attr_set()
andggalign_attr_get()
for basic operations of attached attribute. -
new
geom_draw()
function to draw ggplot2 layer with customized draw function. -
new
geom_subrect()
andgeom_subtile()
to subdivide rectangles with shared borders into a grid.
- fix wrong results of
fortify_matrix.MAF()
method
-
direction
argument instack_layout()
/ggstack()
is soft-deprecated now, user must provide it manually. -
set_context
,order
, andname
arguments inalign_*()
andggheatmap()
are soft-deprecated, which is advised to useactive
argument. -
guides
,free_guides
,free_spaces
,free_labs
, andplot_data
arguments inalign_*()
andggheatmap()
are deprecated, which is advised to useplot_align
function instead. -
theme
argument inalign_*()
andggheatmap()
is deprecated, which is advised to useplot_theme
function. -
what
argument instack_active()
is soft-deprecated, user is advised to usestack_switch()
to change the active plot withwhat
. -
align_panel()
/ggpanel()
is deprecated, user is advised to useggalign(data = NULL)
instead.
-
new
quad_layout()
to create layout allowing free from alignment. -
new
quad_alignv()
,quad_alignh()
,quad_free()
/ggside()
,quad_alignb()
alias forquad_layout()
. -
stack_layout()
now gains atype
argument to control whether the layout should align observations. -
new
ggoncoplot()
function to draw oncoprint. -
new
ggfree()
function to add ggplot to the layout. -
new
fortify_matrix()
function to convert any objects to a matrix, and addfortify_matrix()
method forMAF
object. -
new
fortify_data_frame()
function to convert any objects to a data frame. -
now, a special attribute
ggalign
can be used to pass additional informations across the building process, and a new functionggalign_attr()
can be used to extract the data from the attribute. -
new
plot_theme()
function to control the default theme of the plot in layout. -
new
plot_data()
function to control the data transformation of the plot in layout. -
new
plot_align()
function to control specifications of the plot in layout. -
new
with_quad()
function to control the-
operator context. -
new
quad_init()
function to initialize the annotation with self-provided data. -
new
stack_switch()
andquad_switch()
to switch active plots forstack_layout()
andquad_layout()
. -
new
anno_top()
,anno_left()
,anno_bottom()
andanno_right()
alias for add annotation inquad_layout()
. -
align_dendro()
gain a new argumentcutree
to customize the process of tree cutting. -
reorder_dendrogram
argument inalign_dendro()
function now can accept a function to reorder the tree. -
new
layer_order()
function to change the ggplot2 layer adding order. -
new
theme_no_axes()
function to remove axis elements. -
new
geom_pie()
function to draw pie charts.
-
fix bug when apply
free_border
inalignpatches
object. -
fix bug when provide a function in
distance
argument ofalign_dendro()
-
fix bug when provide
hclust
ordendrogram
in method argument ofalign_dendro()
-
fix bug of
coord_ggalign()
for discrete scale
-
merge
function has been implemented withvctrs
for performance -
for large matrix (> 20000 cells), automatically use
geom_raster()
-
{data.table} is now removed from the dependency
-
layout_heatmap()
/ggheatmap()
arguments width/height have been renamed.width
/.height
to helps avoid conflicts with arguments fromgeom_tile()
. -
the nestet alignpatches theme by default will inherit from the parent alignpatches
-
new
layout_title()
function, nowlayout_annotation()
only control the layout theme -
add
ggrastr::rasterize
method for bothggheatmap()
andggstack()
-
set_context
argument inalign_dendro()
now depends onplot_dendrogram
by default -
align_dendro()
gain a new argumentreorder_dendrogram
to control whether to reorder the generated dendrogram based on the mean values. -
align_reorder()
now splitted into two functionalign_order()
andalign_reorder()
-
dendrogram_data()
gain a new argumentreorder_branches
to control whether to reorder the inputleaf_braches
based on the tree. -
align_dendro()
gain new argumentmerge_dendrogram
to control whether the dendrograms in multiple groups should be merged -
dendrogram height axis will be automatically reversed in bottom and left annotation stack
-
heatmap fill color scale now default use
scale_fill_gradient2(low = "blue", high = "red")
for continuous values. -
Coord
is used to set limits instead ofScale
-
all
free_*
arguments now accept the same argument of the correspondingfree_*
functions. -
new
theme_ggalign()
function for the default theme of ggalign package -
export option
ggalign.default_theme
allow user to change the global default theme -
new
free_guide()
function, to override the layout guides argument for single plot -
geom_draw()
now utilizepatch()
function to convert objects into grob -
internal changes: all vectors have been operated with
vctrs
package -
stack_layout()
: gainsizes
argument to control the relative sizes of the stack -
align_()*
: noworder
argument only control the plot area. -
align_reorder()
now can accept an ordering character names. -
export
order2()
function -
align_reorder()
: fun argument has been renamed toorder
argument, and it can now accept the ordering integer index directly -
fun
inalign_reorder()
now can return any statistics which can be handled byorder2()
-
fix
ggheatmap()
order not work when put in a stack layout -
method
inhclust2()
can now return any objects which can be coerced into hclust, or you can provide such object directly inmethod
. -
hclust2()
now can acceptdistance = NULL
-
hmanno()
,stack_active()
, andalign_*()
functions gain a new argumenttheme
to control the theme for the plot. -
new
layout_annotation()
andlayout_theme()
to modify the layout components -
borders
argument infree_space()
has been renamed tospaces
-
{tibble} is now removed from the dependency
-
align_plots()
now can acceptgList
,function
,recordedplot
,trellis
,pheatmap
,Heatmap
,HeatmapAnnotation
, andHeatmapList
, we have addedalignpatch
method for these objects. -
add
patch
method forgList
,function
,recordedplot
,trellis
,pheatmap
,Heatmap
,HeatmapAnnotation
, andHeatmapList
-
fix a bug in
wrap()
function where duplicated names in gtable cause some grobs missing -
new
free_vp()
function to customize the viewport when aligning. -
StackLayout
andHeatmapLayout
methods have been collapsed into one method forLayout
class -
New
Patch
class, now we can extend the alignment process of any object and customize the building process withggproto
. -
fix missing variable
labs
in thefree_space
method ofPatchAlignpatches
-
Add package logo
-
new
inset()
function -
add package quotes in DESCRIPTION
-
add return value docs for exported function or methods
- omit the redudnant description and add single quote for package name
ggalign
pacakge provides two layout to arrange ggplot objects:
-
heatmap_layout()
/ggheatmap()
: Arrange ggplot into a Heatmap layout. Seevignette("heatmap-layout")
for details. -
stack_layout()
/ggstack()
: Arrange ggplot vertically or horizontally. Seevignette("stack-layout")
for details.
To further customize these layouts, we offer following functions:
align_group()
: Group layout axis into panel with a group variable.align_kmeans()
: Group layout axis into panel by kmeansalign_reorder()
: Reorders layout observations based on weights or summary statistics.align_dendro()
: Reorder or Group layout based on hierarchical clustering
For more detailed instructions on customizing layouts, see the vignette:
vignette("layout-customize")
.
Additionally, plots can be added in the layout with following functions:
align_gg()
/ggalign()
: Create ggplot object with a customized data.align_panel()
/ggpanel()
: Create ggplot object with the layout panel data.
For more information on adding plots, refer to the vignette:
vignette("layout-plot")
.