-
Hello, I am trying aRtsy and want to create a diamonds canvas that uses the color of the lowest frequent color of the data frame as a background. Is there any way to do this? Currently, I have the following: I create a palette of 15 colors and then I select a random number between 1 and 6, this number is used to select how many colors I will take from the palette (also randomly). Right now I have a black background but would like to process the database so that I can use the lowest appearing color as a background.
I was able to extract the color with the following code, but as I am using it after generating the plot, if I select this color and re run the code, it no longer matches the original. And I can't find a way to do it directly inside the canvas_diamonds function
I am trying this
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, Cool that you are trying this out! It's probably best to first make the artwork with An example is given below:
Hope this works for you! |
Beta Was this translation helpful? Give feedback.
Hi,
Cool that you are trying this out! It's probably best to first make the artwork with
NA
as the background color andNA
as the line color. After that I would extract which color of the diamonds is the least frequent and set the background color withtheme_canvas()
(this is also applied internally).An example is given below: