当前位置:网站首页>GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R
GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R
2022-07-02 11:50:00 【Xiaoyu 2022】
library(tidyverse)
library(gghighlight)
theme_set(theme_bw())
p <- ggplot(
airquality,
aes(Day, Temp, group = Month, color = factor(Month))
) +
geom_line() +
scale_color_viridis_d() +
labs(x = "Day of Month", y = "Temperature") +
theme(legend.position = "top")
p
library(tidyverse)
library(gghighlight)
theme_set(theme_bw())
p <- ggplot(
airquality,
aes(Day, Temp, group = Month, color = factor(Month))
) +
geom_line() +
scale_color_viridis_d() +
labs(x = "Day of Month", y = "Temperature") +
theme(legend.position = "top")
p + gghighlight(max(Temp) > 93, label_key = Month)
library(tidyverse)
library(gghighlight)
theme_set(theme_bw())
ggplot(iris, aes(Sepal.Length, fill = Species)) +
geom_histogram(bins = 30) +
scale_fill_viridis_d() +
gghighlight() +
facet_wrap(~ Species)
library(tidyverse)
library(gghighlight)
df <- mtcars %>% mutate(name = row.names(.))
df %>%
ggplot(aes(mpg, disp)) +
geom_point(col = "darkred") +
gghighlight(disp > 350 & disp <= 400,
unhighlighted_colour = alpha("steelblue", 0.4),
use_direct_label = TRUE,
label_key = name,
label_params = list(size = 5)) +
geom_point(col = "darkred", size = 2.5)
library(tidyverse)
library(gghighlight)
df <- mtcars %>% mutate(name = row.names(.))
ggplot(df, aes(name, mpg)) +
geom_col() +
theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
gghighlight(mpg > 25)
边栏推荐
- YYGH-10-微信支付
- flutter 问题总结
- 在连接mysql数据库的时候一直报错
- FLESH-DECT(MedIA 2021)——一个material decomposition的观点
- HOW TO ADD P-VALUES TO GGPLOT FACETS
- GGPlot Examples Best Reference
- 抖音海外版TikTok:正与拜登政府敲定最终数据安全协议
- Attribute acquisition method and operation notes of C # multidimensional array
- GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT
- [cloud native] 2.5 kubernetes core practice (Part 2)
猜你喜欢
YYGH-BUG-04
How to Create a Beautiful Plots in R with Summary Statistics Labels
微信小程序利用百度api达成植物识别
Esp32 audio frame esp-adf add key peripheral process code tracking
How to Visualize Missing Data in R using a Heatmap
MySQL比较运算符IN问题求解
Never forget, there will be echoes | hanging mirror sincerely invites you to participate in the opensca user award research
excel表格中选中单元格出现十字带阴影的选中效果
HOW TO ADD P-VALUES TO GGPLOT FACETS
HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R
随机推荐
Esp32 audio frame esp-adf add key peripheral process code tracking
行業的分析
Astparser parsing class files with enum enumeration methods
HOW TO EASILY CREATE BARPLOTS WITH ERROR BARS IN R
ESP32 Arduino 引入LVGL 碰到的一些问题
MySQL comparison operator in problem solving
ESP32音频框架 ESP-ADF 添加按键外设流程代码跟踪
亚马逊云科技 Community Builder 申请窗口开启
Cluster Analysis in R Simplified and Enhanced
Summary of data export methods in powerbi
Attribute acquisition method and operation notes of C # multidimensional array
How to Add P-Values onto Horizontal GGPLOTS
揭露数据不一致的利器 —— 实时核对系统
FLESH-DECT(MedIA 2021)——一个material decomposition的观点
Precautions for scalable contract solution based on openzeppelin
Seriation in R: How to Optimally Order Objects in a Data Matrice
PHP query distance according to longitude and latitude
mysql链表数据存储查询排序问题
deepTools对ChIP-seq数据可视化
Pyqt5+opencv project practice: microcirculator pictures, video recording and manual comparison software (with source code)