当前位置:网站首页>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)
边栏推荐
- bedtools使用教程
- A sharp tool for exposing data inconsistencies -- a real-time verification system
- Esp32 stores the distribution network information +led displays the distribution network status + press the key to clear the distribution network information (source code attached)
- 基于Hardhat编写合约测试用例
- MySQL comparison operator in problem solving
- Precautions for scalable contract solution based on openzeppelin
- HOW TO ADD P-VALUES TO GGPLOT FACETS
- Some suggestions for young people who are about to enter the workplace in the graduation season
- HOW TO EASILY CREATE BARPLOTS WITH ERROR BARS IN R
- flutter 问题总结
猜你喜欢

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer

6. Introduce you to LED soft film screen. LED soft film screen size | price | installation | application

GGPLOT: HOW TO DISPLAY THE LAST VALUE OF EACH LINE AS LABEL

Seriation in R: How to Optimally Order Objects in a Data Matrice

Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?

mysql链表数据存储查询排序问题

可升级合约的原理-DelegateCall

HOW TO ADD P-VALUES TO GGPLOT FACETS

HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R

MySQL比较运算符IN问题求解
随机推荐
Power Spectral Density Estimates Using FFT---MATLAB
JS -- take a number randomly from the array every call, and it cannot be the same as the last time
How to Create a Nice Box and Whisker Plot in R
[visual studio 2019] create MFC desktop program (install MFC development components | create MFC application | edit MFC application window | add click event for button | Modify button text | open appl
R HISTOGRAM EXAMPLE QUICK REFERENCE
制造业数字化转型和精益生产什么关系
PX4 Position_ Control RC_ Remoter import
map集合赋值到数据库
PgSQL string is converted to array and associated with other tables, which are displayed in the original order after matching and splicing
A sharp tool for exposing data inconsistencies -- a real-time verification system
可升级合约的原理-DelegateCall
Liftover for genome coordinate conversion
BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
to_ Bytes and from_ Bytes simple example
HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R
基于Hardhat和Openzeppelin开发可升级合约(一)
Esp32 audio frame esp-adf add key peripheral process code tracking
HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R
PHP query distance according to longitude and latitude
File operation (detailed!)
