{"id":59566,"date":"2024-06-17T08:29:37","date_gmt":"2024-06-17T00:29:37","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=59566"},"modified":"2024-06-17T08:29:37","modified_gmt":"2024-06-17T00:29:37","slug":"%e8%bf%98%e5%9c%a8%e4%b8%ba%e7%bb%98%e5%88%b6%e9%85%8d%e8%89%b2%e6%8b%85%e5%bf%83%ef%bc%9f%e5%b0%8f%e5%9b%be%e6%95%99%e4%bd%a0%e7%94%a8rcolorbrewer%e5%8c%85%e9%80%89%e6%8b%a9%e5%ae%8c%e7%be%8e","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=59566","title":{"rendered":"\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01"},"content":{"rendered":"<p><html><br \/>\n<head><br \/>\n<title><\/title><br \/>\n<meta charset=\"utf-8\"><br \/>\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover\"><\/p>\n<style>\n*{margin:0;padding:0}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}img{z-index:999;position:relative;max-width:100%;margin:10px 0;}body{letter-spacing:.034em}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px}a{color:#576b95;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}td,th{word-wrap:break-word;padding:5px 10px;border:1px solid #DDD;}table{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}.rich_media_area_primary{padding:20px 16px 12px;background-color:#fafafa}@media (max-width:375px){.rich_media_area_primary{padding:20px 60px 15px 60px}.rich_media_area_extra{padding:0 60px 21px 60px}}@media (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner,body{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media{padding:20px;overflow:hidden;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}@media screen and (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media_content{overflow:hidden;color:#333;font-size:17px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:justify;position:relative;z-index:0}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em}.rich_media_content em{font-style:italic}.rich_media_content fieldset{min-width:0}.rich_media_content .list-paddingleft-1,.rich_media_content .list-paddingleft-2,.rich_media_content .list-paddingleft-3{padding-left:2.2em}.rich_media_content .list-paddingleft-1 .list-paddingleft-2,.rich_media_content .list-paddingleft-2 .list-paddingleft-2,.rich_media_content .list-paddingleft-3 .list-paddingleft-2{padding-left:30px}.rich_media_content .list-paddingleft-1{padding-left:1.2em}.rich_media_content .list-paddingleft-3{padding-left:3.2em}.rich_media_content .code-snippet,.rich_media_content .code-snippet__fix{max-width:1000%!important}.rich_media_content .code-snippet *,.rich_media_content .code-snippet__fix *{max-width:1000%!important}.rich_media_title{font-size:22px;line-height:1.4;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #e7e7eb;}@supports(-webkit-overflow-scrolling:touch){.rich_media_title{font-weight:700}}.rich_media_meta{display:inline-block;vertical-align:middle;padding:0 0 10px 0;font-size:15px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_meta.icon_appmsg_tag{margin-right:0px}.rich_media_meta.meta_tag_text{margin-right:0}.rich_media_meta_list em{font-style:normal}.rich_media_meta_text{color:#a5a5a5;}p{margin:0;}.msgBox{margin-top:20px;padding-top:20px;padding-left:50px;overflow:hidden;border-top:2px dashed #09a2ff;}.msg{padding-top:7px;clear:both;}.msgBody{float:right;width:100%;margin-left:55px;padding-bottom:15px;border-bottom:1px dashed #e0e0e0;}.userHeadImg{float:left;margin-left:-50px;}.userHeadImg img{width:40px;height:40px;margin-right:10px;border-radius:3px;}.userName{color:#888888;line-height:24px;font-size:14px;margin:5px 0 5px 0;height:24px;}.replyBody,.autherBody{color:#565656;font-size:15px;}.replyIcon{border-left:4px solid #33ab01;margin-right:5px;}.ad{text-decoration:none;color:#d6d4d4;font-size:12px;}.msgBodyReply{padding-top:5px;}.userName span{float:right;color:#afafaf;font-size:14px;}code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;}.code-snippet__fix{font-size:14px;margin:10px 0;display:block;color:#333;position:relative;background-color:rgba(0,0,0,0.03);border:1px solid #f0f0f0;border-radius:2px;display:-webkit-box;display:-webkit-flex;display:flex;padding-left:25px;line-height:26px}.code-snippet__fix code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;font-family:Consolas,\"Liberation Mono\",Menlo,Courier,monospace}.code-snippet__comment,.code-snippet__quote{color:#afafaf;font-style:italic}.code-snippet__keyword,.code-snippet__selector-tag,.code-snippet__subst{color:#ca7d37}.code-snippet__number,.code-snippet__literal,.code-snippet__variable,.code-snippet__template-variable,.code-snippet__tag .code-snippet__attr{color:#0e9ce5}.code-snippet__string,.code-snippet__doctag{color:#d14}.code-snippet__title,.code-snippet__section,.code-snippet__selector-id{color:#d14}.code-snippet__subst{font-weight:normal}.code-snippet__type,.code-snippet__class .code-snippet__title{color:#0e9ce5}.code-snippet__tag,.code-snippet__name,.code-snippet__attribute{color:#0e9ce5;font-weight:normal}.code-snippet__regexp,.code-snippet__link{color:#ca7d37}.code-snippet__symbol,.code-snippet__bullet{color:#d14}.code-snippet__built_in,.code-snippet__builtin-name{color:#ca7d37}.code-snippet__meta{color:#afafaf}.code-snippet__deletion{background:#fdd}.code-snippet__addition{background:#dfd}.code-snippet__emphasis{font-style:italic}.code-snippet__strong{font-weight:bold}.account_avatar{width:40px;height:40px;padding:0;}.account_info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;padding:20px 0;align-items:center}.flex_bd{padding-left:14px;}.account_nickname{display:inline-block;vertical-align:middle;line-height:1.2;color:#576b95;font-size:14px}.account_desc{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;color:rgba(0,0,0,0.3);font-size:14px;line-height:1.2;padding-top:.4em}.msg_source_url{text-align:left;word-break:break-all;margin-top:20px;}.msg_source_url a{padding-right:10px;}.msg_source_url .url_text{color:#a8a8a8;}.video-desc{font-size:14px;margin-top:15px;color:#6c6c6c;}.msg_source_url{text-align:left;}.original_primary_card_tips{color:rgba(0,0,0,0.3);line-height:1.4;font-size:15px;}.weui-flex__item{margin-bottom:20px;padding:20px 16px;margin-top:16px;line-height:1.4;align-items:center;background-color:#f7f7f7;border-radius:8px;position:relative;}.original_primary_desc{color:rgba(0,0,0,0.5);font-size:14px;padding-top:4px;width:auto;overflow:hidden;text-overflow:ellipsis;}.msgBodyReplyList{border-top:1px solid #e1e1e1;margin-top:10px;}.msgBodyReplyListTop{border-top:0;}.reply_like_num{float:right;font-size:14px;color:#c7c7c7;}.msgData{margin-top:20px;color:#626262;}.msgData span{font-size:14px;padding-right:15px;}.msgData .likes{float:right;padding-right:0;}.js_text_content p{font-size:18px;}.rich_media_meta_link{font-size:15px;}blockquote {padding-left: 10px;border-left: 3px solid #dbdbdb;color: rgba(0,0,0,0.5);font-size: 15px;padding-top: 4px;margin: 1em 0;}.video_iframe{width:500px;height:400px;}.blockquote_info{color:#b5b5b5;margin-top:10px;}#copyright_logo{color:#bdbdbd;}.rich_media_meta_list{margin-bottom:10px;}.reprint{background:#efefef;border-radius:5px;padding:8px;color:#1f1f1f;}.reprint a{word-break:break-all;}.topic{color:#8e8e8e;background:#f7f7f7;border-radius:5px;padding:10px 8px;}.topic a{padding-right:5px;}.topic p{margin-bottom:5px;}\n<\/style>\n<link href=\"https:\/\/www.juyifx.cn\/config\/css\/wxArticle.css\" rel=\"stylesheet\"\/>\n<\/head><script>\nvar data={\"mp\":\"\u751f\u4fe1\u679c\",\"title\":\"\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01\",\"time\":\"2023-09-15 19:00:22\",\"timeStamp\":\"1694775622\"};\n<\/script><br \/>\n<body><\/p>\n<div class=\"rich_media\">\n<h1 class=\"rich_media_title\" id=\"activity-name\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247492984&#038;idx=3&#038;sn=f382672a26bc3ecd14c642ab13163d7b&#038;chksm=cf7f75bdf808fcabfa6fe9990e4f88cbbf722875b428663e920357bab659a2e15cd75fc3a5ea#rd\" target=\"_blank\" rel=\"noopener\">\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span class=\"rich_media_meta rich_media_meta_text\">\u5c0f\u56fe&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_nickname\" id=\"profileBt\"><a href=\"javascript:void(0);\" class=\"wx_tap_link js_wx_tap_highlight weui-wa-hotarea\" id=\"js_name\">\u751f\u4fe1\u679c&nbsp;&nbsp;<\/a><\/span><em id=\"publish_time\" class=\"rich_media_meta rich_media_meta_text\">2023-09-15 19:00:22<\/em><\/div>\n<p><content><\/p>\n<div class=\"reprint\">\n<p>\u8f6c\u81ea\u516c\u4f17\u53f7\uff1a\u751f\u4fe1\u56fe<br \/><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkxODUxNDgzNA==&#038;mid=2247485139&#038;idx=1&#038;sn=e27a4b29c7a20a16fb3abc0d020cf46d\" target=\"_blank\" title=\"\u9605\u8bfb\u539f\u6587\" rel=\"noopener\">http:\/\/mp.weixin.qq.com\/s?__biz=MzkxODUxNDgzNA==&#038;mid=2247485139&#038;idx=1&#038;sn=e27a4b29c7a20a16fb3abc0d020cf46d<\/a><\/p>\n<\/div>\n<section style=\"font-size: 16px;margin-bottom: 24px;\" data-mpa-powered-by=\"yiban.io\">\n<section style=\"display: flex;flex-flow: row;margin: 10px 0%;text-align: left;justify-content: flex-start;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: bottom;width: 50%;background-color: rgb(242, 183, 183);margin-right: 3px;flex: 0 0 auto;align-self: flex-end;height: auto;padding: 3px 10px;\">\n<section style=\"font-size: 17px;color: rgb(255, 255, 255);text-align: right;letter-spacing: 4px;\" powered-by=\"xiumi.us\">\n<p><strong>\u70b9\u51fb\u84dd\u5b57<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;border-left: 4px solid rgb(242, 183, 183);border-bottom-left-radius: 0px;flex: 100 100 0%;align-self: stretch;height: auto;padding: 3px 10px;background-color: rgba(254, 245, 240, 0.8);\">\n<section style=\"color: rgb(181, 126, 121);font-size: 17px;letter-spacing: 4px;\" powered-by=\"xiumi.us\">\n<p><strong>\u5173\u6ce8\u5c0f\u56fe<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"line-height: 1.8;letter-spacing: 1.5px;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u5c0f\u4f19\u4f34\u5e73\u65f6\u7ed8\u5236\u4e0d\u5c11\u56fe\u7247\uff0c\u4f46\u662f\u5f80\u5f80\u56e0\u4e3a\u914d\u8272\u7684\u95ee\u9898\u800c\u56f0\u6270\uff0c\u603b\u662f\u5230\u4e0d\u5230\u5f88\u597d\u770b\u7684\u914d\u8272\uff0c\u81ea\u5df1\u660e\u660e\u9009\u62e9\u51e0\u4e2a\u597d\u770b\u7684\u989c\u8272\uff0c\u7ec4\u5408\u5728\u4e00\u6765\u5b8c\u5168\u4e0d\u642d\u914d\uff0c\u4e0d\u61c2\u5f97\u5982\u4f55\u4f7f\u7528\u914d\u8272\u7684\u642d\u914d\uff0c\u5c0f\u56fe\u5728\u8fd9\u91cc\u6559\u5927\u5bb6\u4e00\u4e2a\u65b9\u6cd5\uff0c\u4f7f\u7528R\u8bed\u8a00\u989c\u8272\u76f8\u5173\u5305RColorBrewer,\u8fd9\u4e2a\u5305\u4e0d\u4ec5\u80fd\u63d0\u4f9b\u597d\u770b\u7684\u914d\u8272\uff0c\u8fd8\u53ef\u4ee5\u6839\u636e\u6211\u4eec\u5e73\u65f6\u7ed8\u56fe\u7684\u7c7b\u578b\u53bb\u9009\u62e9\u4e0d\u540c\u7684\u989c\u8272\uff0c\u662f\u4e0d\u662f\u542c\u8d77\u6765\u5f88\u6709\u610f\u601d\uff1f<\/p>\n<\/section>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: bottom;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: flex-end;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 100 100 0%;border-style: solid;border-width: 1px;border-color: rgb(108, 62, 49);border-radius: 10px;overflow: hidden;padding: 10px;background-color: rgb(252, 230, 233);height: auto;margin-right: -12px;margin-left: -12px;\">\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: top;align-self: flex-start;flex: 0 0 auto;background-color: rgb(255, 255, 255);padding: 20px;border-radius: 10px;overflow: hidden;height: auto;\">\n<section style=\"text-align: justify;line-height: 1.8;letter-spacing: 1.5px;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u6211\u4eec\u5148\u7b80\u5355\u4e86\u89e3\u4e00\u4e0b\u8fd9\u4e2aRColorBrewer\u5305\u3002\u8fd9\u4e2a\u5305\u989c\u8272\u4e3b\u8981\u5206\u4e09\u4e2a\u90e8\u5206\uff0c\u987a\u5e8f\uff08Sequential\uff09\u3001\u5b9a\u6027\uff08Qualitative\uff09\u548c\u53d1\u6563\uff08Diverging\uff09\u3002\u800c\u8fd9\u4e09\u4e2a\u90e8\u5206\u53ef\u4ee5\u5e94\u7528\u4e8e\u4e0d\u540c\u7684\u7ed8\u56fe\u7c7b\u578b\u4e2d\uff0c\u4f8b\u5982\u5728\u987a\u5e8f\uff08Sequential\uff09\u4e2d\u53ef\u4ee5\u751f\u6210\u6e10\u53d8\u7684\u989c\u8272\uff0c\u90a3\u6211\u4eec\u5c31\u53ef\u4ee5\u7528\u5728\u8fde\u7eed\u6027\u7684\u6570\u636e\u4e2d\uff0c\u6bd4\u5982\u5bc6\u5ea6\u56fe\uff0c\u7ebf\u56fe\u7b49\u3002\u5bf9\u4e8e\u5b9a\u6027\uff08Qualitative\uff09\u662f\u751f\u6210\u5dee\u5f02\u660e\u663e\u7684\u989c\u8272\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u7528\u5728\u6761\u5f62\u56fe\u6216\u8005\u997c\u56fe\u8fd9\u79cd\u5206\u7ec4\u6216\u8005\u5206\u7c7b\u522b\u7684\u3002\u53d1\u6563\uff08Diverging\uff09\u5462\u5c31\u662f\u5206\u6563\u7684\u6570\u636e\uff0c\u4e00\u822c\u662f\u6570\u636e\u4e24\u4e2a\u6781\u7aef\u4f46\u662f\u6709\u4e2d\u95f4\u503c\u7684\u6570\u636e\uff0c\u6bd4\u5982\u76f8\u5173\u6027\u8d34\u56fe\u7b49\u3002<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"margin: 10px 0%;text-align: left;justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;border-left: 5px solid rgb(242, 203, 203);border-bottom-left-radius: 0px;padding-left: 9px;min-width: 10%;flex: 0 0 auto;height: auto;align-self: flex-start;\">\n<section style=\"margin: 2px 0%;\" powered-by=\"xiumi.us\">\n<section style=\"color: rgb(110, 75, 36);line-height: 1.8;text-align: justify;letter-spacing: 1px;\">\n<p style=\"white-space: normal;\"><strong>\u4e0b\u9762\u6211\u4eec\u5148\u770b\u4e00\u4e0b\u8fd9\u4e09\u4e2a\u90e8\u5206\u6709\u54ea\u4e9b\u989c\u8272\u7ec4\u6210\uff1a<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__meta\">#install.packages(<span class=\"code-snippet__meta-string\">\"RColorBrewer\"<\/span>)#\u4e0d\u8981\u5fd8\u8bb0\u5b89\u88c5R\u5305<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">library(RColorBrewer)<\/span><\/code><code><span class=\"code-snippet_outer\">library(ggplot2)<\/span><\/code><code><span class=\"code-snippet_outer\">display.brewer.all() #\u5c55\u793a\u6240\u6709\u7684\u8272\u677f<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.8733766233766234\" data-s=\"300,640\" data-type=\"png\" data-w=\"616\" style=\"vertical-align: middle;width: 100%;height: auto !important;\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-09-15_\u300c\u8f6c\u300d\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01\/1_L4Xzt684WP9xAH5q3uhfdpajXz3wdw.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/2wJ7bWfS0QtP2KYQDSKM5aGmnm1vwEufyNnS2DFt5h5kj0xCmBukcN0aL4Xzt684WP9xAH5q3uhfdpajXz3wdw\/640?wx_fmt=png'\"  \/><\/section>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><br  \/><\/section>\n<\/section>\n<section style=\"margin: 10px 0%;text-align: left;justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;border-left: 5px solid rgb(242, 203, 203);border-bottom-left-radius: 0px;padding-left: 9px;min-width: 10%;flex: 0 0 auto;height: auto;align-self: flex-start;\">\n<section style=\"margin: 2px 0%;\" powered-by=\"xiumi.us\">\n<section style=\"color: rgb(110, 75, 36);line-height: 1.8;text-align: justify;letter-spacing: 1px;\">\n<p style=\"white-space: normal;\"><strong>\u6211\u4eec\u53ef\u4ee5\u5c06\u989c\u8272\u6253\u5370\u51fa\u6765\uff0c\u8fd9\u91cc\u5c0f\u56fe\u4f7f\u7528Set3\u8fdb\u884c\u989c\u8272\u4e3e\u4f8b<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\">pal&lt;-brewer.pal(<span class=\"code-snippet__number\">8<\/span>,<span class=\"code-snippet__string\">'Set3'<\/span>)# \u5c55\u793a<span class=\"code-snippet__string\">'Set3'<\/span>\u8272\u677f\u4e2d<span class=\"code-snippet__number\">8<\/span>\u4e2a\u989c\u8272<\/span><\/code><code><span class=\"code-snippet_outer\">pal<\/span><\/code><code><span class=\"code-snippet_outer\">display.brewer.pal(<span class=\"code-snippet__number\">8<\/span>,<span class=\"code-snippet__string\">'Set3'<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.10638297872340426\" data-s=\"300,640\" data-type=\"png\" data-w=\"705\" style=\"vertical-align: middle;width: 100%;height: auto !important;\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-09-15_\u300c\u8f6c\u300d\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01\/2_Xn3WLduHiaMiasdAic5BzJoyzM3paA.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/2wJ7bWfS0QtP2KYQDSKM5aGmnm1vwEufQicnBtDmTzgB27UUDMdiabmv8bMBOXn3WLduHiaMiasdAic5BzJoyzM3paA\/640?wx_fmt=png'\"  \/><\/section>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"1.0592334494773519\" data-s=\"300,640\" data-type=\"png\" data-w=\"574\" style=\"vertical-align: middle;width: 100%;height: auto !important;\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-09-15_\u300c\u8f6c\u300d\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01\/3_N1c5nNLBUM1LK7WQQmg10pVorsRnMQ.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/2wJ7bWfS0QtP2KYQDSKM5aGmnm1vwEuficDOpZEpxUgdOtuPlVY7jATt0N1c5nNLBUM1LK7WQQmg10pVorsRnMQ\/640?wx_fmt=png'\"  \/><\/section>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><br  \/><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"margin: 10px 0%;text-align: left;justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;border-left: 5px solid rgb(242, 203, 203);border-bottom-left-radius: 0px;padding-left: 9px;min-width: 10%;flex: 0 0 auto;height: auto;align-self: flex-start;\">\n<section style=\"margin: 2px 0%;\" powered-by=\"xiumi.us\">\n<section style=\"color: rgb(110, 75, 36);line-height: 1.8;text-align: justify;letter-spacing: 1px;\">\n<p style=\"white-space: normal;\"><strong>\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u8fdb\u884c\u5b9e\u6218\u7684\u6f14\u4e60\u628a\uff0c\u5bf9\u4e8e\u6e10\u53d8\u7684\u989c\u8272\uff0c\u6211\u4eec\u7ed8\u5236\u5bc6\u5ea6\u56fe\u6765\u6f14\u793a\uff1a<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\"># \u521b\u5efa\u6570\u636e<\/span><\/code><code><span class=\"code-snippet_outer\">data &lt;- data.frame(group = rep(c(<span class=\"code-snippet__string\">\"A\"<\/span>, <span class=\"code-snippet__string\">\"B\"<\/span>, <span class=\"code-snippet__string\">\"C\"<\/span>), each = <span class=\"code-snippet__number\">100<\/span>), value = c(rnorm(<span class=\"code-snippet__number\">100<\/span>, <span class=\"code-snippet__number\">0<\/span>, <span class=\"code-snippet__number\">1<\/span>), rnorm(<span class=\"code-snippet__number\">100<\/span>, <span class=\"code-snippet__number\">2<\/span>, <span class=\"code-snippet__number\">1<\/span>), rnorm(<span class=\"code-snippet__number\">100<\/span>, <span class=\"code-snippet__number\">4<\/span>, <span class=\"code-snippet__number\">1<\/span>)))<\/span><\/code><code><span class=\"code-snippet_outer\"># \u521b\u5efaSequential\u989c\u8272\u8c03\u8272\u677f<\/span><\/code><code><span class=\"code-snippet_outer\">colors &lt;- brewer.pal(<span class=\"code-snippet__number\">3<\/span>, <span class=\"code-snippet__string\">\"BuPu\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"># \u7ed8\u5236\u5bc6\u5ea6\u56fe<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(data, aes(x = value, fill = group)) + <\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;geom_density(alpha = <span class=\"code-snippet__number\">0.5<\/span>) +<\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;scale_fill_manual(values = colors) +<\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;<span class=\"code-snippet__built_in\">labs<\/span>(x = <span class=\"code-snippet__string\">\"value\"<\/span>, y = <span class=\"code-snippet__string\">\"pro\"<\/span>, title = <span class=\"code-snippet__string\">\"\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.9954407294832827\" data-s=\"300,640\" data-type=\"png\" data-w=\"658\" style=\"vertical-align: middle;width: 100%;height: auto !important;\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-09-15_\u300c\u8f6c\u300d\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01\/4_pciaaXknGdmickodQh3KV6Tqtsljsw.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/2wJ7bWfS0QtP2KYQDSKM5aGmnm1vwEufk9ArXpxFnpKhyh8wib0WpVLNzwSpciaaXknGdmickodQh3KV6Tqtsljsw\/640?wx_fmt=png'\"  \/><\/section>\n<\/section>\n<section style=\"line-height: 1.8;letter-spacing: 1.5px;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u8fd9\u79cd\u56fe\u5c31\u53ef\u4ee5\u7528\u5728\u53bb\u6279\u6b21\u6548\u5e94\u7b49\uff0c\u662f\u4e0d\u662f\u6e10\u53d8\u7684\u989c\u8272\u5f88\u597d\u770b\u3002<\/p>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"margin: 10px 0%;text-align: left;justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;border-left: 5px solid rgb(242, 203, 203);border-bottom-left-radius: 0px;padding-left: 9px;min-width: 10%;flex: 0 0 auto;height: auto;align-self: flex-start;\">\n<section style=\"margin: 2px 0%;\" powered-by=\"xiumi.us\">\n<section style=\"color: rgb(110, 75, 36);line-height: 1.8;text-align: justify;letter-spacing: 1px;\">\n<p style=\"white-space: normal;\"><strong>\u6211\u4eec\u5bf9\u4e8e\u6709\u5dee\u5f02\u660e\u663e\u7684\u6570\u636e\uff0c\u8fd9\u91cc\u7528\u997c\u56fe\u6765\u6f14\u793a\uff1a<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\"># \u521b\u5efa\u6570\u636e<\/span><\/code><code><span class=\"code-snippet_outer\">data &lt;- data.frame(category = c(<span class=\"code-snippet__string\">\"A\"<\/span>, <span class=\"code-snippet__string\">\"B\"<\/span>, <span class=\"code-snippet__string\">\"C\"<\/span>, <span class=\"code-snippet__string\">\"D\"<\/span>), value = c(<span class=\"code-snippet__number\">30<\/span>, <span class=\"code-snippet__number\">20<\/span>, <span class=\"code-snippet__number\">25<\/span>, <span class=\"code-snippet__number\">15<\/span>))<\/span><\/code><code><span class=\"code-snippet_outer\"># \u521b\u5efaQualitative\u989c\u8272\u8c03\u8272\u677f<\/span><\/code><code><span class=\"code-snippet_outer\">colors &lt;- brewer.pal(<span class=\"code-snippet__number\">4<\/span>, <span class=\"code-snippet__string\">\"Set1\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"># \u7ed8\u5236\u997c\u56fe<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(data, aes(x = <span class=\"code-snippet__string\">\"\"<\/span>, y = value, fill = category)) + <\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;geom_bar(stat = <span class=\"code-snippet__string\">\"identity\"<\/span>) +<\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;coord_polar(<span class=\"code-snippet__string\">\"y\"<\/span>) +<\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;scale_fill_manual(values = colors)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.9641185647425897\" data-s=\"300,640\" data-type=\"png\" data-w=\"641\" style=\"vertical-align: middle;width: 100%;height: auto !important;\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-09-15_\u300c\u8f6c\u300d\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01\/5_aaLjRUMhn4uTneXNPjRPFSrBWgh9Rg.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/2wJ7bWfS0QtP2KYQDSKM5aGmnm1vwEufD83nib6euicu41M3S4zb2OHN7PiaaLjRUMhn4uTneXNPjRPFSrBWgh9Rg\/640?wx_fmt=png'\"  \/><\/section>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><br  \/><\/section>\n<\/section>\n<section style=\"margin: 10px 0%;text-align: left;justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;border-left: 5px solid rgb(242, 203, 203);border-bottom-left-radius: 0px;padding-left: 9px;min-width: 10%;flex: 0 0 auto;height: auto;align-self: flex-start;\">\n<section style=\"margin: 2px 0%;\" powered-by=\"xiumi.us\">\n<section style=\"color: rgb(110, 75, 36);line-height: 1.8;text-align: justify;letter-spacing: 1px;\">\n<p style=\"white-space: normal;\"><strong>\u8fd9\u6837\u4e00\u6765\uff0c\u989c\u8272\u7684\u5f88\u660e\u663e\u7684\u533a\u5206\u5f00\u3002\u5bf9\u4e8e\u53d1\u6563\u6027\u7684\u6570\u636e\uff0c\u6bd4\u5982\u76f8\u5173\u6027\u7b49\uff0c\u6211\u4eec\u7ed8\u5236\u7bb1\u7ebf\u56fe\u53bb\u6f14\u793a\uff1a<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\"># \u521b\u5efa\u6570\u636e<\/span><\/code><code><span class=\"code-snippet_outer\">data &lt;- data.frame(group = rep(c(<span class=\"code-snippet__string\">\"A\"<\/span>, <span class=\"code-snippet__string\">\"B\"<\/span>, <span class=\"code-snippet__string\">\"C\"<\/span>), each = <span class=\"code-snippet__number\">50<\/span>), value = c(rnorm(<span class=\"code-snippet__number\">50<\/span>, <span class=\"code-snippet__number\">0<\/span>, <span class=\"code-snippet__number\">1<\/span>), rnorm(<span class=\"code-snippet__number\">50<\/span>, <span class=\"code-snippet__number\">3<\/span>, <span class=\"code-snippet__number\">1<\/span>), rnorm(<span class=\"code-snippet__number\">50<\/span>, <span class=\"code-snippet__number\">6<\/span>, <span class=\"code-snippet__number\">1<\/span>)))<\/span><\/code><code><span class=\"code-snippet_outer\"># \u521b\u5efaDiverging\u989c\u8272\u8c03\u8272\u677f<\/span><\/code><code><span class=\"code-snippet_outer\">colors &lt;- brewer.pal(<span class=\"code-snippet__number\">7<\/span>, <span class=\"code-snippet__string\">\"RdBu\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"># \u7ed8\u5236\u7bb1\u7ebf\u56fe<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(data, aes(x = group, y = value, fill = group)) + <\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;geom_boxplot() +<\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;scale_fill_manual(values = colors) +<\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;<span class=\"code-snippet__built_in\">labs<\/span>(x = <span class=\"code-snippet__string\">\"group\"<\/span>, y = <span class=\"code-snippet__string\">\"value\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"1.0076103500761036\" data-s=\"300,640\" data-type=\"png\" data-w=\"657\" style=\"vertical-align: middle;width: 100%;height: auto !important;\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-09-15_\u300c\u8f6c\u300d\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01\/6_60rANC54y98wppENW6AXVzvU7Umq5A.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/2wJ7bWfS0QtP2KYQDSKM5aGmnm1vwEufBnAJvxvtVUg7bQghrcORAxlx60rANC54y98wppENW6AXVzvU7Umq5A\/640?wx_fmt=png'\"  \/><\/section>\n<\/section>\n<section style=\"line-height: 1.8;letter-spacing: 1.5px;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u4e0a\u8ff0\u5c31\u53ea\u662f\u4f8b\u5b50\uff0c\u5c0f\u4f19\u4f34\u770b\u6e05\u695a\u5982\u4f55\u8c03\u7528\u989c\u8272\u4f7f\u7528\uff0c\u53bb\u9009\u62e9\u81ea\u5df1\u559c\u6b22\u7684\u989c\u8272\u5e76\u770b\u597d\u4f7f\u7528\u54ea\u79cd\u7c7b\u578b\u7684\u7ed8\u56fe\u7c7b\u578b\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u8fd9\u4e2a\u5305\u8fd8\u53ef\u4ee5\u4e0egrDevices\u5305\u8054\u5408\u4f7f\u7528\uff0c\u53ef\u80fd\u6709\u70b9\u5c0f\u4f19\u4f34\u4e0d\u4e86\u89e3\u8fd9\u4e2a\u5305\uff0c\u5c0f\u56fe\u4e0b\u671f\u5355\u72ec\u7ed9\u5927\u5bb6\u8bb2\u89e3\u4e00\u4e0b\u3002<\/p>\n<\/section>\n<section style=\"margin: 10px 0%;text-align: left;justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;border-left: 5px solid rgb(242, 203, 203);border-bottom-left-radius: 0px;padding-left: 9px;min-width: 10%;flex: 0 0 auto;height: auto;align-self: flex-start;\">\n<section style=\"margin: 2px 0%;\" powered-by=\"xiumi.us\">\n<section style=\"color: rgb(110, 75, 36);line-height: 1.8;text-align: justify;letter-spacing: 1px;\">\n<p style=\"white-space: normal;\"><strong>\u8fd9\u4e2a\u5305\u53ef\u4ee5\u5bf9\u989c\u8272\u8fdb\u884c\u6e10\u53d8\u7684\u914d\u7f6e\uff0c\u548cRColorBrewer\u5305\u642d\u914d\u4e00\u8d77\u5462\u53ef\u4ee5\u7ed8\u5236\u51fa\u66f4\u6f02\u4eae\u7684\u989c\u8272\uff0c\u6765\u770b\u4e00\u4e0b\u628a\uff01\uff1a<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\">library(ComplexHeatmap)<\/span><\/code><code><span class=\"code-snippet_outer\">library(grDevices)<\/span><\/code><code><span class=\"code-snippet_outer\">library(circlize)<\/span><\/code><code><span class=\"code-snippet_outer\">library(RColorBrewer)<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">## \u9009\u62e9\u5305\u4e2d\u7684RdYlBu\u989c\u8272\uff0c\u53ef\u4ee5\u4f7f\u7528rev()\u51fd\u6570\u5c06\u989c\u8272\u53cd\u8f6c\uff0c\u5c06\u539f\u672c\u7684\u2018\u7ea2-\u84dd\u2019\uff0c\u53d8\u4e3a\u2018\u84dd-\u7ea2\u2019<\/span><\/code><code><span class=\"code-snippet_outer\">colors &lt;- colorRampPalette(rev(brewer.pal(n = <span class=\"code-snippet__number\">7<\/span>, name =<span class=\"code-snippet__string\">\"RdYlBu\"<\/span>)))(<span class=\"code-snippet__number\">100<\/span>) ##\u84dd\u5230\u7ea2<\/span><\/code><code><span class=\"code-snippet_outer\">values &lt;- seq(<span class=\"code-snippet__number\">-0.5<\/span>, <span class=\"code-snippet__number\">0.5<\/span>, length.out = <span class=\"code-snippet__number\">101<\/span>)[<span class=\"code-snippet__number\">-101<\/span>]<\/span><\/code><code><span class=\"code-snippet_outer\">col_fun = colorRamp2(values, colors)<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">random_matrix &lt;- matrix(rnorm(<span class=\"code-snippet__number\">10000<\/span>), nrow = <span class=\"code-snippet__number\">100<\/span>, ncol = <span class=\"code-snippet__number\">100<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">random_matrix &lt;- random_matrix \/ max(<span class=\"code-snippet__built_in\">abs<\/span>(random_matrix)) <\/span><\/code><code><span class=\"code-snippet_outer\">ComplexHeatmap::Heatmap(random_matrix, name = <span class=\"code-snippet__string\">\" \"<\/span>, col = col_fun, cluster_rows = F,cluster_columns = F)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"1.0030349013657056\" data-s=\"300,640\" data-type=\"png\" data-w=\"659\" style=\"vertical-align: middle;width: 100%;height: auto !important;\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-09-15_\u300c\u8f6c\u300d\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01\/7_vWtcUEdRHFJe9vBDHx8MZlehRHChFg.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/2wJ7bWfS0QtP2KYQDSKM5aGmnm1vwEuficl6SYQ8IlswvT06XlbugCQkIvWtcUEdRHFJe9vBDHx8MZlehRHChFg\/640?wx_fmt=png'\"  \/><\/section>\n<\/section>\n<section style=\"line-height: 1.8;letter-spacing: 1px;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u56e0\u4e3a\u6570\u636e\u662f\u968f\u673a\u751f\u6210\u7684\uff0c\u53ef\u80fd\u4e0d\u662f\u592a\u7f8e\u89c2\uff0c\u8981\u662f\u6362\u6210\u5c0f\u4f19\u4f34\u81ea\u5df1\u7684\u5b9e\u9a8c\u6570\u636e\uff0c\u90a3\u4e48\u5c0f\u56fe\u89c9\u5f97\u80af\u5b9a\u597d\u770b\u7684\u3002\u5c0f\u4f19\u4f34\u6709\u6ca1\u6709\u5b66\u4f1a\u914d\u8272\u7684\u5b66\u4e60\u5462\uff0c\u5feb\u53bb\u52a8\u624b\u8bd5\u8bd5\u5427\uff0c\u4e0d\u8981\u5fd8\u8bb0\u591a\u591a\u7406\u89e3\u4ee3\u7801\u7684\u610f\u4e49\uff0c\u8fd9\u6837\u624d\u53ef\u4ee5\u7ed8\u5236\u51fa\u770b\u7684\u914d\u8272\uff01<\/p>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.3888888888888889\" data-s=\"300,640\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;height: auto !important;\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-09-15_\u300c\u8f6c\u300d\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01\/8_angbXdTvZ9HOmP698BnjictLaaXVhg.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/2wJ7bWfS0QtP2KYQDSKM5aGmnm1vwEufmiaTXqMjVTpqnCcCoNOc35icGicbiangbXdTvZ9HOmP698BnjictLaaXVhg\/640?wx_fmt=png'\"  \/><\/section>\n<\/section>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: top;align-self: flex-start;flex: 0 0 auto;border-style: solid;border-width: 1px;border-color: rgb(176, 176, 176);padding: 7px;\">\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: top;align-self: flex-start;flex: 0 0 auto;background-color: rgba(249, 238, 237, 0.5);padding: 18px;\">\n<section style=\"text-align: justify;font-size: 14px;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u6b22\u8fce\u4f7f\u7528\uff1a\u4e91\u751f\u4fe1\u5e73\u53f0 ( http:\/\/www.biocloudservice.com\/home.html)<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"min-height: 40px;margin: 10px 0%;\" powered-by=\"xiumi.us\">\n<section style=\"width: 100%;margin-right: auto;margin-bottom: -10px;margin-left: auto;\">\n<table width=\"100%\">\n<tbody>\n<tr opera-tn-ra-comp=\"_$.pages:0.layers:0.comps:31.classicTable1:0\" powered-by=\"xiumi.us\">\n<td colspan=\"1\" rowspan=\"1\" opera-tn-ra-cell=\"_$.pages:0.layers:0.comps:31.classicTable1:0.td@@0\" style=\"border-color: rgb(62, 62, 62);border-style: none;background-color: rgb(249, 174, 165);padding: 10px 0px;\" width=\"96.3700%\">\n<section style=\"line-height: 1;text-align: center;font-size: 17px;color: rgb(255, 255, 255);letter-spacing: 5px;\" powered-by=\"xiumi.us\">\n<p><strong>\u5f80\u671f\u63a8\u8350<\/strong><\/p>\n<\/section>\n<\/td>\n<\/tr>\n<tr opera-tn-ra-comp=\"_$.pages:0.layers:0.comps:31.classicTable1:1\" powered-by=\"xiumi.us\">\n<td colspan=\"1\" rowspan=\"1\" opera-tn-ra-cell=\"_$.pages:0.layers:0.comps:31.classicTable1:1.td@@0\" style=\"border-top: 0px none rgb(62, 62, 62);border-right: 0px none rgb(62, 62, 62);border-left: 0px none rgb(62, 62, 62);border-bottom-color: rgb(202, 198, 198);border-bottom-style: dashed;background-color: rgb(247, 247, 247);padding-right: 5px;padding-left: 5px;\" width=\"96.3700%\">\n<section style=\"text-align: center;justify-content: center;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: middle;border-width: 0px;align-self: center;flex: 0 0 auto;\">\n<section style=\"font-size: 14px;letter-spacing: 1px;\" powered-by=\"xiumi.us\">\n<p><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkxODUxNDgzNA==&amp;mid=2247484994&amp;idx=1&amp;sn=a373d7673bb90338ed7d846199a0c313&amp;chksm=c1b17bbff6c6f2a9b75dfcb577efc2bc94ab72c5beb9b66060ed2a64e72d6b82d800960452da&amp;scene=21#wechat_redirect\" textvalue=\"\u5c0f\u56fe\u6559\u4f60\u7ed8\u5236\u9ad8\u5927\u4e0a\u7684\u70ed\u56fe\uff01R\u5305ComplexHeatmap\u70ed\u56fe\u795e\u5668\u7684\u4f7f\u7528\uff01\uff01\uff01\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" rel=\"noopener\">\u5c0f\u56fe\u6559\u4f60\u7ed8\u5236\u9ad8\u5927\u4e0a\u7684\u70ed\u56fe\uff01R\u5305ComplexHeatmap\u70ed\u56fe\u795e\u5668\u7684\u4f7f\u7528\uff01\uff01\uff01<\/a><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/td>\n<\/tr>\n<tr opera-tn-ra-comp=\"_$.pages:0.layers:0.comps:31.classicTable1:2\" powered-by=\"xiumi.us\">\n<td colspan=\"1\" rowspan=\"1\" opera-tn-ra-cell=\"_$.pages:0.layers:0.comps:31.classicTable1:2.td@@0\" style=\"border-top: 0px none rgb(62, 62, 62);border-right: 0px none rgb(62, 62, 62);border-left: 0px none rgb(62, 62, 62);border-bottom-color: rgb(202, 198, 198);border-bottom-style: dashed;background-color: rgb(247, 247, 247);padding-right: 5px;padding-left: 5px;\" width=\"96.3700%\">\n<section style=\"text-align: center;justify-content: center;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: middle;border-width: 0px;align-self: center;flex: 0 0 auto;\">\n<section style=\"font-size: 14px;letter-spacing: 1px;\" powered-by=\"xiumi.us\">\n<p><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkxODUxNDgzNA==&amp;mid=2247484993&amp;idx=1&amp;sn=32a782ae053be455833abd1304f697ce&amp;chksm=c1b17bbcf6c6f2aa59429aa336c0fdbf6dff424feece5610af167d3ac66f9cf546021ebf59d2&amp;scene=21#wechat_redirect\" textvalue=\"\u6572\u9ed1\u677f\uff01\uff01\u5c0f\u56fe\u624b\u628a\u624b\u5168\u9762\u6559\u4f60\u7ed8\u5236\u53d1\u6563\u6027\u201c\u6b63\u8d1f\u201d\u56fe\uff01\uff01\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" rel=\"noopener\">\u6572\u9ed1\u677f\uff01\uff01\u5c0f\u56fe\u624b\u628a\u624b\u5168\u9762\u6559\u4f60\u7ed8\u5236\u53d1\u6563\u6027\u201c\u6b63\u8d1f\u201d\u56fe\uff01\uff01<\/a><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/td>\n<\/tr>\n<tr opera-tn-ra-comp=\"_$.pages:0.layers:0.comps:31.classicTable1:3\" powered-by=\"xiumi.us\">\n<td colspan=\"1\" rowspan=\"1\" opera-tn-ra-cell=\"_$.pages:0.layers:0.comps:31.classicTable1:3.td@@0\" style=\"border-top: 0px none rgb(62, 62, 62);border-right: 0px none rgb(62, 62, 62);border-left: 0px none rgb(62, 62, 62);border-bottom-color: rgb(202, 198, 198);border-bottom-style: dashed;background-color: rgb(247, 247, 247);padding-right: 5px;padding-left: 5px;\" width=\"96.3700%\">\n<section style=\"text-align: center;justify-content: center;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: middle;border-width: 0px;align-self: center;flex: 0 0 auto;\">\n<section style=\"font-size: 14px;letter-spacing: 1px;\" powered-by=\"xiumi.us\">\n<p><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkxODUxNDgzNA==&amp;mid=2247484992&amp;idx=1&amp;sn=0125320b17c3cc06dddef115efb7e5e0&amp;chksm=c1b17bbdf6c6f2abce7c50baeba0f85e8088bea5e4568aa0d77a998be7a79ea4f43781ed41bc&amp;scene=21#wechat_redirect\" textvalue=\"\u3010PLINK\u8d28\u91cf\u63a7\u5236\u3011\u54c8\u6e29\u5e73\u8861\u662f\u4ec0\u4e48\uff1f\u4e3a\u4ec0\u4e48\u8fdb\u884c\u54c8\u6e29\u5e73\u8861\u8fc7\u6ee4\uff1f\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" rel=\"noopener\">\u3010PLINK\u8d28\u91cf\u63a7\u5236\u3011\u54c8\u6e29\u5e73\u8861\u662f\u4ec0\u4e48\uff1f\u4e3a\u4ec0\u4e48\u8fdb\u884c\u54c8\u6e29\u5e73\u8861\u8fc7\u6ee4\uff1f<\/a><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\"><br  \/><\/p>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\ud83d\udc47\u70b9\u51fb\u9605\u8bfb\u539f\u6587\u8fdb\u5165\u7f51\u5740<\/p>\n<\/section>\n<p style=\"display: none;margin-bottom: 24px;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<p><\/content><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd8\u5728\u4e3a\u7ed8\u5236\u914d\u8272\u62c5\u5fc3\uff1f\u5c0f\u56fe\u6559\u4f60\u7528RColorBrewer\u5305\u9009\u62e9\u5b8c\u7f8e\u7684\u914d\u8272\uff01\uff01 \u5c0f\u56fe&nbsp;&nbsp;\u751f\u4fe1\u679c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/59566"}],"collection":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59566"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/59566\/revisions"}],"predecessor-version":[{"id":59567,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/59566\/revisions\/59567"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59566"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}