In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you how to use the rgb function of R language to obtain color related knowledge points, the content is detailed, the logic is clear, I believe most people still know too much about this knowledge, so share this article for your reference, I hope you can get something after reading this article, let's take a look at it.
R language drawing process, often use color values, sometimes can not directly control the transparency of the picture color, you can get the color based on rgb () to control the color depth. For example, show red: barplot (1J 1J coll = "red") when col= "red" or col= "# FF000..."
R language drawing process, often use color values, sometimes can not directly control the transparency of the picture color, you can get the color based on rgb () to control the color depth.
For example, show red:
Barplot (1meme 1meme coll = "red")
When col= "red" or col= "# FF0000" are red
On the other hand, rgb is also red, corresponding to "# FF0000FF".
Rgb (red, green, blue, alpha, names = NULL, maxColorValue = 1) red, blue, green, alpha
Numeric vectors with values in [0, M] where M is maxColorValue. When this is255, the red, blue, green, and alpha values are coerced to integers in0:255 and the result is computed most efficiently.
Names
Character vector. The names for the resulting vector.
MaxColorValue
Number giving the maximum of the color values range, see above.
The fourth value, alpha, is that the transparency value 0 is completely transparent, while the maximum value means opacity, which simply controls the depth of the color.
For example, the maximum value of 255 is corresponding to the picture of alphabetical 20:
Barplot) above is all the contents of the article "how to use the rgb function of R language to get colors". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.