Coder Social home page Coder Social logo

yigitbabal / ggexpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vertesy/ggexpress

0.0 0.0 0.0 605 KB

ggExpress is the fastest way to create, annotate and and save plots in R.

Home Page: https://vertesy.github.io/ggExpress

License: GNU General Public License v3.0

R 98.69% Rebol 1.31%

ggexpress's Introduction

ggExpress

Development of the ggExpress package for quick ggpubr based plotting ala 'Type less, Plot more'. This package is work in progress.

image



Installation

Install directly from GitHub via devtools with one R command:

# install.packages("devtools"); # If you don't have it.
require("devtools")

# Install dependencies
devtools::install_github(repo = "vertesy/Stringendo", upgrade = F)
devtools::install_github(repo = "vertesy/ReadWriter", upgrade = F)
devtools::install_github(repo = "vertesy/CodeAndRoll2", upgrade = F)
devtools::install_github(repo = "vertesy/MarkdownHelpers", upgrade = F)

# Install MarkdownHelpers
devtools::install_github(repo = "vertesy/ggExpress")

...then simply load the package:

require("ggExpress")

Alternatively, you simply source it from the web. This way function help will not work, and you will have no local copy of the code on your hard drive.

source("https://raw.githubusercontent.com/vertesy/ggExpress/main/R/ggExpress.functions.R")
source("https://raw.githubusercontent.com/vertesy/ggExpress/main/R/ggExpress.auxiliary.functions.R")

Troubleshooting

If you encounter a bug, something doesn't work or unclear, please let me know by raising an issue on ggExpress โ€“ Please check if it has been asked.

Usage

require('ggpubr')
require('cowplot')
require('Stringendo')
require('ReadWriter')
require('CodeAndRoll2')
require('MarkdownHelpers')

require('ggExpress')


# Test ------------------

weight <- rnorm(1000); 
qhistogram(weight, vline = 3)
qdensity(weight)

weight3 <- runif (12)
qbarplot(weight3)

xvec <- c("A"=12, "B"=29)
qpie(vec = xvec)


dfx <- as.data.frame(cbind("AA"=rnorm(12), "BB"=rnorm(12)))
qscatter(dfx, suffix = "2D.gaussian")

Output

Saved as pdf by default.

weight.dens weight.hist weight3.bar xvec.pie dfx.2D.gaussian.scatter

List of Functions

Updated: 2023/07/22 11:39

  • 1 qhistogram()

    This function generates a histogram and saves the plot for a given vector and offers several customizations.

  • 2 qdensity()

    Draw and save a density plot.

  • 3 qbarplot()

    Draw and save a barplot.

  • 4 qbarplot.df()

    Draw and save a barplot for tibbles or dataframes

  • 5 qpie()

    Draw and save a pie chart

  • 6 qboxplot()

    Draw and save a boxplot

  • 7 qviolin()

    Draw and save a violin plot

  • 8 qstripchart()

    Generates a stripchart and saves the plot for a given 2-column dataframe and offers several customizations.

  • 9 qscatter()

    Draw and save a 2D-scatter plot.

  • 10 qvenn()

    Draw and save a Venn Diagram using the ggVennDiagram package.

  • 11 qqSave()

    Quick-Save ggplot objects

  • 12 q32vA4_grid_plot()

    Plot up to 6 panels (3-by-2) on vertically standing A4 page.

  • 13 qA4_grid_plot()

    Plot up to 6 panels (3-by-1) on vertically standing A4 page.

  • 14 qMarkdownImageLink()

    Insert Markdown image link to .md report

  • 15 qqqAxisLength()

    Define Axis Length

  • 16 qqqNamed.Vec.2.Tbl()

    Covert a named vector to a table.

  • 17 qqqTbl.2.Vec()

    Covert a table to a named vector.

ggexpress's People

Contributors

vertesy avatar

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.