In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use ggplot2 package to draw bar chart in R language". The content in this article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to draw bar chart with ggplot2 package in R language".
The ggplot2 package plots a histogram showing the amount and quantity of gene expression in the sample.
Usage: Rscript lnc_exp.r-husage: lnc_exp.r [- h]-I exp_data [- l legend.position] [- o outdir] [- p prefix] [- H height] [- W width] lnc_exp_Histogram: https://www..com/article/1552optional arguments:-h,-- help show this help message and exit-I exp_data -- exp_data exp_data input data file path [required]-- l legend.position,-- legend.position legend.position Sets the location of the legend [none,left,right,bottom,top,or two-element numeric vector] [optional,default top]-o outdir -- outdir outdir output file directory [optional,default cwd]-p prefix,-- prefix prefix out file name prefix [optional,default lncRNA]-H height,-- height height the height of the heat map [optional,default 5]-W width,-- width width the width of the heat map [optional,default 5] parameter description:
-I input the gene expression matrix file, and it is recommended to input the standardized expression data
# ID
S0-1
S0-2
S0-3
S12-1
S12-2
S12-3
T0-1
T0-2
XLOC_000173
0.249352
0.1533
0.499899
0.258562
0.174361
0.659209
0.647131
0.705749
XLOC_000195
0.0500286
0.029918
0
0.0674263
0
00.0682668
0.0121699
XLOC_000196
0.458015
0.938447
0.72592
0.28384
0.271833
0.316445
0.742948
0.744104
-l specifies the location of the legend, which can be set to none,left,right,bottom,top,or two-element numeric vector
Use example: Rscript lnc_exp.r-I All_lnc_gene_fpkm.tsv-l top-p lnc_exp_Histogram thank you for reading, the above is "R language how to use ggplot2 package to draw bar chart" content, after the study of this article, I believe you on the R language how to use ggplot2 package to draw bar chart this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.