Rainbow
Tips
Description
- Generates a Pie Chart with the percentages of the rainbow function
- Colors are formed counter-clock-wise, or counting upwards
- To achieve the colors from "lightblue" to "red" through "blue" and "pink"
start=0.5, end=1
- To achieve the colors from "red" to "lightblue" through "green" and "yellow"
start=0, end=.5
- Output
Function
pdf(file="rainbow.pdf", width=10, height=10)
n <- 100
pie(
rep(1,n),
labels=c((1:(n-1))/n, "0, 1"),
col=rainbow(n),
border=NA,
main = "Rainbow Percentages",
cex=.7
)
dev.off()