Simple GRaphs (Part II)
After much eye squinting from all viewers, it was decided during the meeting with great panel judges that the graph needed a face lift. The best Simple Graph tutorial that was perfect for my data derived from:
So, the changes were as per below:
# Graph autos with adjacent bars using rainbow colors barplot(as.matrix(Maludam_Mac2014), main="Elemental Analysis", ylab= "Carbon Ratio", beside=TRUE, col=rainbow(5)) # Place the legend at the top-left corner with no frame # using rainbow colors legend("topleft", c("S1","S4","S6","S8","S9"), cex=0.6, bty="n", fill=rainbow(5));
After much thinking and staring at my PC for one day, giving opportunity to bloodshot eyes, I've realized the data was the key.
Therefore, I changed the raw data to
C:N C:S H:C
0.40 1.81 1.13
2.42 17.66 0.33
0.67 4.85 0.78
0.79 7.32 0.56
2.45 16.79 0.35
as similar to
autos.dat (from the website)
cars trucks suvs 1 2 4 3 5 4 6 4 6 4 5 6 9 12 16