Rで解析:色が510種類収録されています「RColorLisa」パッケージ

Rの解析に役に立つ記事
スポンサーリンク

綺麗な色が510種類収録されているパッケージの紹介です。1パレットは5色で構成されていて、102種類のパレットが収録されています。合わせて、カラーパレットデータ作成コマンドを抜粋し紹介します。

なお、本パッケージの利用にはR version 3.2.4以上が必要です。

パッケージバージョンは0.0.0.9000。実行コマンドはR version 4.2.2で確認しています。

スポンサーリンク

パッケージのインストール

下記コマンドを実行してください。

#パッケージのインストール
install.packages("devtools")
devtools::install_github("vikjam/RColorLisa")

実行コマンドの紹介

詳細はコマンド内を確認ください。

#パッケージの読み込み
library("RColorLisa")
#パレット表示が簡単なscalesパッケージ
#install.packages("scales")
library("scales")

#カラーパレットの作成:color.lisa.palコマンド
#取得する色数:nオプション,最大5
#パレット名を指定:nameオプション
ColPalette <- color.lisa.pal(n = 5, name = "Adobe (Variant): Luminous Day by Josef Albers")
show_col(ColPalette)

#カラーパレットの内容
#color.lisa.palコマンドより
color.lisa <- data.frame(painting = c("Adobe (Variant): Luminous Day by Josef Albers", "Homage to the Square (La Tehuana) by Josef Albers", "Rainbow by Billy Apple", "Spar by Per Arnoldi", "Bicycle Rider By The Loire by Milton Avery", "Cello Player by Milton Avery", "The Swan by Hilma af Klint", "Untitled (Black King Catch Scorpio) by Jean-Michel Basquiat", "DUSTHEADS by Jean-Michel Basquiat", "Dancing Bar In Baden-Baden by Max Beckmann", "Seated Nude by Fernando Botero", "The Birth Of Venus by Sandro Botticelli", "Portrait Of Dante by Sandro Botticelli", "Landscape with the Fall of Icarus by Pieter Bruegel", "Striped Column by Jack Bush", "Nude by Jack Bush", "The Letter by Mary Cassatt", "The Bathers by Paul Cézanne", "La Mariée sous le Baldaquin by Marc Chagall", "Poker Game, 1894, by C.M. Coolidge", "The Persistence of Memory by Salvador Dalí", "Apparition of Face and Fruit Dish on a Beach by Salvador Dalí", "Mona Lisa by Leonardo da Vinci", "Anthracite Minuet by Gene Davis", "At the Milliner's by Edgar Degas", "I Saw the Figure 5 in Gold by Charles Demuth", "The Nun by Otto Dix", "Dr. Mayer-Hermann by Otto Dix", "Landscape by Marcel Duchamp", "Woman, Old Man, and Flower by Max Ernst", "Gravity by M.C. Escher", "Untitled (April 15) by Paul Feeley", "Untitled (1964) by Lorser Feitelson", "Mauve District by Helen Frankenthaler", "Suspended Forms by Terry Frost", "The Siesta by Paul Gauguin", "Untitled (Pink and orange) by Rupprecht Geiger", "The Wind by Hans Hofmann", "A Basket of Clams by Winslow Homer", "Night Windows by Edward Hopper", "Love, Indiana Stable May 66 by Robert Indiana", "RIFT SCULL by James Jean", "Target by Jasper Johns", "Self-Portrait by Frida Kahlo", "Apple Tree by Vasily Kandinsky", "Soft Pressure by Vasily Kandinsky", "Destruction and Hope by Paul Klee", "Fire Evening by Paul Klee", "The Kiss by Gustav Klimt", "Pink Panther by Jeff Koons", "Street Shadows by Jacob Lawrence", "The Library by Jacob Lawrence", "Squiggles by Sol LeWitt", "Kiss II by Roy Lichtenstein", "Hopeless by Roy Lichtenstein", "Girl with Ball by Roy Lichtenstein", "Suprematist Composition by Kazimir Malevich", "Boating by Édouard Manet", "The Son of Man by René Magritte", "The Menaced Assassin by René Magritte", "Jesus, Saint Peter and the Tax Collector by Masaccio", "The Creation of Adam by Michelangelo", "Woman and Dog in Front of the Moon by Joan Miró", "Broadway Boogie Woogie by Piet Mondrian", "Bouquet of Sunflowers by Claude Monet", "The Scream (pastel) by Edvard Munch", "The Scream (oil) by Edvard Munch", "Vir Heroicus Sublimis by Barnett Newman", "Turnsole by Kenneth Noland", "Abstraction Blue by Georgia O'Keeffe", "Red Tights with Fragment 9 by Claes Oldenburg", "Les Demoiselles d'Avignon by Pablo Picasso", "The Dream by Pablo Picasso", "Number 1 by Jackson Pollock", "Purple Rain by Prince", "Leatherstocking's Rescue by John Quidor", "Tobacco Rose by Mel Ramos", "The Night Watch by Rembrandt", "Dance at Le moulin de la Galette by Pierre-Auguste Renoir", "Diver by Bridget Riley", "Marilyn Monroe, I by James Rosenquist", "Untitled (Orange, Yellow, Red) by Mark Rothko", "Untitled (White, Black, Rust, on Brown) by Mark Rothko", "Garden Study of the Vickers Children by John Singer Sargent", "Bauhaus Stairway by Oskar Schlemmer", "A Sunday on La Grande Jatte by Georges Seurat", "Untitled, 1961, by Cy Twombly", "Wine Barrels Sailing Barge by Johann Jacob Ulrich", "Rhythm of a Russian Dance by Theo van Doesburg", "Study for a Composition by Theo van Doesburg", "The Arnolfini Portrait by Jan van Eyck", "The Starry Night by Vincent van Gogh", "Self-Portrait with a Straw Hat by Vincent van Gogh", "Girl with a Pearl Earring by Johannes Vermeer", "Flowers, 1964, by Andy Warhol", "Marilyn Monroe, 1967, by Andy Warhol", "Liz by Andy Warhol", "Mick Jagger by Andy Warhol", "American Gothic by Grant Wood", "An Urbino Maiolica Istoriato by Francesco Xanto", "Untitled, 1953, by Jack Youngerman", "Harlem by Karl Zerbe"),
                         color_1  = c("#D77186", "#C00559", "#F24D98", "#C2151B", "#F3C937", "#E2CACD", "#D6CFC4", "#8CABD9", "#C11432", "#4B3A51", "#99B6BD", "#7A989A", "#272725", "#BFBED5", "#529DCB", "#A1D8B6", "#1C5679", "#8399B3", "#3F6F76", "#204035", "#40798C", "#9BC0CC", "#C8B272", "#293757", "#BDB592", "#e4af79", "#1E1D20", "#E0DBC8", "#d0cec2", "#91323A", "#C1395E", "#2C458D", "#202221", "#5D7342", "#EF5950", "#21344F", "#FF62A9", "#1A6DED", "#A9944A", "#67161C", "#2659D8", "#51394E", "#4B6892", "#121510", "#5D7388", "#d2981a", "#A7B3CD", "#4F51FE", "#4A5FAB", "#D6AABE", "#614671", "#5E3194", "#0A71B6", "#3229ad", "#00020E", "#c7991f", "#151817", "#6486AD", "#B60614", "#B6B3BB", "#0e2523", "#42819F", "#C04759", "#314290", "#184430", "#5059A1", "#272A2A", "#442327", "#D0D8CD", "#0E122D", "#95B1C9", "#CD6C74", "#4E7989", "#D89CA9", "#735bcc", "#B79A59", "#C13E43", "#DBC99A", "#2B5275", "#FAB9AC", "#E25D75", "#EB9413", "#D5D6D1", "#b43a35", "#3A488A", "#3F3F63", "#F2788F", "#FDDDAB", "#BD748F", "#53628D", "#3C490C", "#1a3431", "#FBDC30", "#0C0B10", "#F26386", "#FD0C81", "#D32934", "#a99364", "#A6BDB0", "#2C6AA5", "#59A55D", "#46734F"),
                         color_2  = c("#61A2DA", "#DE1F6C", "#813B7C", "#2021A0", "#7B533E", "#2E7CA8", "#466CA6", "#F6A7B8", "#009ADA", "#A77A4B", "#B3A86A", "#849271", "#DDBD85", "#7F9086", "#ECA063", "#D2C48E", "#BBB592", "#697A55", "#69B7CE", "#4A7169", "#bca455", "#CAD8D8", "#a88b4c", "#568D4B", "#ACBBC5", "#df9c41", "#B66636", "#C9BE90", "#7baa80", "#3A4960", "#AEC17B", "#E4DFD9", "#661E2A", "#D7AE04", "#8D5A78", "#8AAD05", "#F77177", "#2C7CE6", "#F2D9B3", "#3F6148", "#1C6FF3", "#F6DE7D", "#F9E583", "#6D8325", "#A08F27", "#a53e1f", "#E6DA9E", "#8C1E92", "#609F5C", "#B69F7F", "#BE994A", "#9870B9", "#F9C40A", "#bc000e", "#FFDE01", "#c63d33", "#001A56", "#2D345D", "#3A282F", "#697D8E", "#324028", "#86AA7D", "#3B6C73", "#4A71C0", "#548150", "#EFC337", "#E69253", "#C0BC98", "#586180", "#182044", "#263656", "#566C7D", "#A9011B", "#1962A0", "#6650b4", "#826C37", "#376EA5", "#A68329", "#A69F55", "#7BBC53", "#3F4C8C", "#E78810", "#BEC0BF", "#3e501e", "#8785B2", "#808EB7", "#F591EA", "#E7A974", "#3D578E", "#B8B45B", "#3B5B71", "#2b41a7", "#A7A651", "#707DA6", "#F588AF", "#FFED4D", "#2F191B", "#da95aa", "#8B842F", "#D9AE2C", "#EFDB56", "#CAAB6C"),
                         color_3  = c("#6CB7DA", "#F3A20D", "#59D044", "#3547B3", "#BFA588", "#F1C061", "#D1AE45", "#F1EC7A", "#66A64F", "#ECC6A2", "#ECC9A0", "#C1AE8D", "#DA694F", "#A29A68", "#71BF50", "#F45F40", "#CAC3B2", "#C4AA88", "#C65840", "#BEB59C", "#bfb37f", "#D0CE9F", "#a0a584", "#D5BB56", "#9E8D3D", "#af7231", "#547A56", "#76684B", "#4b6b5e", "#D7C969", "#F0CA50", "#425B4F", "#AB381B", "#ECD7B8", "#C66F26", "#E2CE1B", "#FA9849", "#145CBF", "#725435", "#DBD3A4", "#5EBC4E", "#C8AF8A", "#FED43F", "#D6CFB7", "#E5A729", "#457277", "#676155", "#FF4E0B", "#E3C454", "#ECD9AD", "#C8B595", "#F1B02F", "#190506", "#e7cfb7", "#A5BAD6", "#23254c", "#197C3F", "#D9BE7F", "#909018", "#B8B87E", "#c26b61", "#CBB396", "#383431", "#F1F2ED", "#DEB738", "#1F386E", "#EDB931", "#A6885D", "#E2AC29", "#51628E", "#698946", "#DD9D91", "#E4A826", "#F1ECD7", "#59449c", "#54442F", "#565654", "#5B5224", "#F1D395", "#DE6736", "#6A79B0", "#E17512", "#5B382C", "#f8f2f4", "#DABD61", "#465946", "#F0C333", "#A87250", "#BFAB68", "#C1C3B6", "#262121", "#6283c8", "#E0BA7A", "#CCAD9D", "#A4D984", "#C34582", "#2BAA92", "#f4f0e4", "#41240B", "#DDC655", "#7D9DC6", "#D0CCAF"),
                         color_4  = c("#b5b5b3", "#F07A13", "#F3A002", "#E2C43F", "#604847", "#DA7338", "#87240E", "#1D4D9F", "#FDD10A", "#A43020", "#D4613E", "#CF9546", "#A54A48", "#676A4F", "#F3CC4F", "#F9AE8D", "#808C5C", "#B68E52", "#F4CE4B", "#735231", "#805730", "#806641", "#697153", "#D26A1B", "#8C4F36", "#923621", "#BDAE5B", "#CDAB7E", "#bf9a41", "#6D7345", "#E07B42", "#EBAD30", "#EAD4A3", "#A58B8C", "#FB6B22", "#DF5D22", "#FE6E3A", "#162B3D", "#8E9DBF", "#A4804C", "#53A946", "#658385", "#F6BD28", "#E5AD4F", "#4F4D1D", "#8dcee2", "#CDB296", "#CD2019", "#A27CBA", "#76A9A2", "#BD4335", "#EA454C", "#EB5432", "#ffec04", "#F1C9C7", "#e0c4ae", "#D4A821", "#5A3A26", "#E3BFA1", "#6F5F4B", "#5a788d", "#555234", "#F1D87F", "#F0D32D", "#734321", "#D1AE82", "#E4502E", "#8A3230", "#1A1915", "#91A1BA", "#F8D440", "#A1544B", "#80944E", "#E8C051", "#4b3984", "#DBCEAF", "#F9D502", "#8A350C", "#FFFBDD", "#67C1EC", "#D7BC1F", "#DE4117", "#39352C", "#6b381d", "#D95F30", "#8C9355", "#F5C2AF", "#7B533D", "#DAD7D0", "#984F48", "#7C6C4E", "#ccc776", "#9BA7B0", "#B08E4A", "#FCBC52", "#EBA49E", "#D12E6C", "#b74954", "#9C4823", "#D88C27", "#ECA23F", "#617F97"),
                         color_5  = c("#D75725", "#DE6716", "#F2F44D", "#E0DCDD", "#552723", "#741D13", "#040204", "#F08838", "#070707", "#722D24", "#BB9568", "#C67052", "#FDFFE5", "#A63C24", "#D46934", "#80B9CE", "#5F4B3B", "#8C5B28", "#62496F", "#49271B", "#514A2E", "#534832", "#43362a", "#A41D1A", "#2C2D2C", "#2D2A28", "#515A7C", "#3C2B23", "#980019", "#554540", "#89A7C2", "#BF2124", "#E3DED8", "#272727", "#DC2227", "#E17976", "#FD5A35", "#F9ECE4", "#BD483C", "#4B5F80", "#F24534", "#B04838", "#BE4C46", "#BD5630", "#8AAE8A", "#8f657d", "#CCD7AD", "#441C21", "#B85031", "#A26775", "#8B3834", "#CC0115", "#EAF2F0", "#090109", "#BD0304", "#d5d0b2", "#C74C25", "#C6A490", "#EE833E", "#292A2D", "#de7944", "#4D280F", "#EDE5D2", "#AB3A2C", "#852419", "#BE3B2C", "#4378A0", "#973B2B", "#E6E1CE", "#AFD0C9", "#C82720", "#D5898D", "#DCD6B2", "#1A1C23", "#3e2d6c", "#C4AA52", "#E7CA6B", "#090A04", "#D16647", "#E6B90D", "#DCCFAB", "#DB311A", "#1B1B1B", "#20242d", "#BE3428", "#925E48", "#F23B3F", "#6A4531", "#272928", "#2E3432", "#6C2B23", "#c7ad24", "#5A5F80", "#863B34", "#FD814E", "#272324", "#F4BCB9", "#c2ddb2", "#D6AA7E", "#64894D", "#CA4D2A", "#9A352D"),
                         stringsAsFactors = FALSE)
#プロット
#右方向に5色で一つのカラーパレット
show_col(t(color.lisa[, 2:6]), labels = FALSE)

出力例

・color.lisa.palコマンド

colorlisapal

・収録パレットの一覧

ALLRColorLisa

少しでも、あなたのウェブや実験の解析が楽になりますように!!

タイトルとURLをコピーしました