Giter Club home page Giter Club logo

ggheat's Introduction

ggalign

This package extends ggplot2 and offers several benefits for organizing and arranging plots. It is specifically designed to align the axes of multiple ggplot objects consistently. This functionality is particularly useful for plots where data order needs to be manipulated. One common application of this package is in effectively organizing combinations of plots, such as a dendrogram and a heatmap.

Installation

You can install the development version of ggalign from GitHub with:

# install.packages("remotes")
remotes::install_github("Yunuuuu/ggalign")

This package now depends on some un-merged features of patchwork. Please see thomasp85/patchwork#373. If you want to try it, you should install patchwork with pak::pkg_install(Yunuuuu/patchwork@align_axis_title).

Features

ggalign pacakge provides two layout to arrange ggplot objects:

  • layout_heatmap()/ggheamtap(): Arrange ggplot into a Heatmap layout. See vignette("layout-heatmap") for details.

  • layout_stack()/ggstack(): Arrange ggplot vertically or horizontally. See vignette("layout-stack") for details.

To further customize these layouts, the ggalign package offers several Align objects:

  • align_group(): Group layout axis into panel with a group variable.
  • align_kmeans(): Group layout axis into panel by kmeans
  • align_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("align-layout").

Additionally, the following Align objects can be used to add plots directly into the layout:

  • 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("align-plot").

Documentation

Examples

Compare with ComplexHeamtap

ggheat's People

Contributors

yunuuuu avatar

Watchers

 avatar

ggheat's Issues

Release ggheat 0.0.1

First release:

Prepare for release:

  • git pull
  • usethis::use_github_links()
  • urlchecker::url_check()
  • devtools::build_readme()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • git push

Submit to CRAN:

  • usethis::use_version('patch')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted ๐ŸŽ‰
  • usethis::use_github_release()
  • usethis::use_dev_version(push = TRUE)
  • usethis::use_news_md()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.