Ai
1 Star 0 Fork 3

weijiew/R-graph-gallery

forked from 程序员维C社区/graph 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
208-basic-barplot.Rmd 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
Holtz Yan 提交于 2019-03-19 17:47 +08:00 . Barplot section is OK
title descriptionMeta descriptionTop sectionText sectionLink DataToVizText DataToVizLink url output
Most basic barplot
This post describes how to build a basic barplot with R, without any packages. Reproducible code and explanation are provided.
This post describes how to build a basic [barplot](barplot.html) with R, without any packages, using the `barplot()` function.
Barchart section
barplot.html
Barplot tips
data-to-viz.com/graph/barplot.html
208-basic-barplot
html_document
self_contained mathjax lib_dir template css toc toc_float toc_depth df_print
false
default
libs
template_rgg.html
style.css
true
true
2
paged
```{r global options, include = FALSE} knitr::opts_chunk$set( warning=FALSE, message=FALSE) ```
In R, a [barplot](barplot.html) is computed using the `barplot()` function. Here is the most basic example you can do. The input data is a data frame with 2 columns. `value` is used for bar height, `name` is used as category label. Note: read more to - [Customize](209-the-options-of-barplot.html) your barplot - Do it with [ggplot2](barplot.html)
```{r thecode, echo=FALSE, out.width = "100%", fig.height=7} # create dummy data data
```{r thecode, eval=FALSE} ```
```{r, echo=FALSE} htmltools::includeHTML("htmlChunkRelatedRanking.html") ```
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/weijiew/R-graph-gallery.git
git@gitee.com:weijiew/R-graph-gallery.git
weijiew
R-graph-gallery
R-graph-gallery
master

搜索帮助