Genshinpalette | A color pack for the original X

97536c5e385d69ee9adcbc68a182d23f.jpeg

Genshinpalette

JuneThe color matching R package written by my friends , everyone is welcome to use it and give valuable opinions.

GenshinpaletteProvides a series of color palettes, inspired by the original God color matching

63b84e231d7435e89d1410e164885765.jpeg

package install

At present, the package can only be installed from GitHub, and it will be optimized and improved in the future. Please provide more suggestions and comments to help optimize and improve the package:

remotes::install_github("Schwarzeneggerjune/Genshinpalette",force = T)

usage

At present, there are only three simple functions in this package. get_character_nameThe function can get the English name of the original god character, which can be used to extract the theme color of the corresponding character later. GenshinpaletteThe function can extract the theme color of the corresponding character. Because the color extraction has a certain randomness, the current color matching may not be very beautiful and will be manually optimized and updated later. The function can simply display the colors in the palette display_colors.

char_name=get_character_name(Country = "All")#Country可以是原神中各国家
head(char_name,10)#若出现乱码请检查系统编码格式是否为UTF-8
  ALBEDO     ALOY    AMBER  BARBARA  BENNETT    DIONA    DILUC   FISCHL    KAEYA     KLEE 
"阿贝多" "埃洛伊"   "安柏" "芭芭拉" "班尼特" "迪奥娜" "迪卢克" "菲谢尔"   "凯亚"   "可莉" 

Genshinpalette('BARBARA',#角色名称
               6)#所需颜色个数,默认为6
[1] "#2C3350" "#727782" "#9C9997" "#BEB8BA" "#CDC2B9" "#F4EFEA"

display_colors('FISCHL')
209c73ec4d4fae1e62ef8bb20d454017.jpeg
Rplot04
library(ggplot2)
data("diamonds")

ggplot(
  subset(diamonds, carat >= 2.2),
  aes(x = table, y = price, colour = cut)
) +
  geom_point(alpha = 0.7) +
  geom_smooth(method = "loess", alpha = 0.05, size = 1, span = 1) +
  theme_bw()+
  scale_color_manual(values = Genshinpalette('JEAN'))
ce737c989b456249c5757a16042721a4.png
Rplot02
ggplot(
  subset(diamonds, carat > 2.3 & depth > 10 & depth < 100),
  aes(x = depth, fill = cut)
) +
  geom_histogram(colour = "black", binwidth = 1, position = "dodge") +
  theme_bw()+
  scale_fill_manual(values = Genshinpalette('GANYU'))
8fc34eca8c7f297d967206ed864065d6.png
HIRE

palette display

70fcedb12782c1419ab3b57445ff7c80.jpeg
combination 6
9ea9e551f5825accb527477577fe1b13.jpeg
combination 7
173ae39d6d59cab8dd7e901f710e56fc.jpeg
combination 8
6cb509141c9b824c5098c6444710bd7c.jpeg
combination 9
0452a8a9611de2b13b0aa67c3a85d9aa.jpeg
Combo 10
87f7e77f9feb6355e1cce14cc1e5f4bf.jpeg
combination 2
784ee2c63129eeae75b5d18b15bd5e11.jpeg
combination 3
a7e236e1dcdb30a60ae2449a8f515856.jpeg
combination 5

previous content

  1. CNS Chart Reappearance | Biological Information Analysis | R Drawing Resource Sharing & Discussion Group!

  2. How to draw this picture | A bit complicated scatter plot

  3. How to draw this picture | Correlation Analysis Lollipop Chart

  4. Group student letter | Front Immunol | A simple routine for screening early diagnostic markers based on serum proteome

  5. (Free tutorial + code collection) | Follow Cell to learn drawing series collection

  6. Q&A | How to draw beautiful illustrations in papers?

  7. Follow Cell to learn drawing | Mulberry map (ggalluvial)

  8. R actual combat | Lasso regression model establishment and variable screening

  9. Follow NC to map | Advanced interaction network diagram (protein + enrichment pathway) (Cytoscape)

  10. R actual combat | Add a circle to the clustering (ggunchull)

  11. R actual combat | NGS data time series analysis (maSigPro)

  12. Learn to draw with Cell | Venn Diagram (ggVennDiagram)


f3846666a2e083b390758638db494000.png
Canoe Notes Matrix

Guess you like

Origin blog.csdn.net/weixin_45822007/article/details/128878160