|
@ -8,7 +8,7 @@ labels = c('breakfast', 'brunch', 'lunch', 'snacks', 'dinner') |
|
|
colors = c('#4286f4','#bb3af2','#ed2f52','#efc023','#ea7441') |
|
|
colors = c('#4286f4','#bb3af2','#ed2f52','#efc023','#ea7441') |
|
|
|
|
|
|
|
|
# Give the chart file a name. |
|
|
# Give the chart file a name. |
|
|
png(file = "/root/piechart.png") |
|
|
png(file = "/var/www/html/examples_r/piechart.png") |
|
|
|
|
|
|
|
|
# Plot the chart. |
|
|
# Plot the chart. |
|
|
pie3D(x, labels=labels, explode=0.1, height=0.05, main='Daily Diet Plan', col=colors) |
|
|
pie3D(x, labels=labels, explode=0.1, height=0.05, main='Daily Diet Plan', col=colors) |
|
|