Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. ## get a single color, and display on screen
  2.  
  3. random.color <- function() {
  4. hexbot <- GET(endpoint)
  5. content(hexbot)$colors[[1]]$value
  6. }
  7.  
  8. rcol <- random.color()
  9. barplot(1, col=rcol, main=rcol, axes=FALSE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement