

So, in your example it would be the most simple dataset and most simple plot that clearly highlights your problem and only your problem. The goal of an MWE is to distill your example down to the absolute bare bones example that highlights your problem. There’s even a package called reprex to assist this. That said, I’d encourage you to turn this into a minimal working example (also known as reproducible example, or reprex). I applaud you for posting all your data and code, it’s much better than the vague questions with no code. I’ll try to come back to this when not on mobile, but I want to make one quick comment first. So I guess my question how would fix this error? In the Stackoverflow thread one of the users suggested to use the breaks and labels function instead c(0.2,0.4,0.6,0.8,1)Ĭould someone explain why that is? Is that concept applicable to my case? If anyone could point me in the right direction that would be extremely helpful. I am also accompanied by multiple warnings. When trying to source the code I am getting this error: Error in ame(ID = id, Scale = X, breaks, Labels = labels, Major = major): arguments imply differing number of rows: 1, 6, 4 Labs(title="IUGS QAP Diagram for Plutonic Rocks", Geom_text(data=Labs,aes(label=Label),size=4,color="black") + Geom_polygon(aes(fill=Label,group=Label),color="black",alpha=0.25) + #Merge the three sets together to create a master set. Polygon.labels$IDLabel=1:nrow(polygon.labels)Ĭolnames(polygons) = c("IDLabel","IDPoint","PointOrder") Geom_text(aes(label=IDPoint),color="blue") Theme_bw() + theme_hidetitles() + theme_hidearrows() + #Build a library of points, left to right, top to bottom.Ĭolnames(points) = c("IDPoint","T","L","R") To modify the this block of code: library(ggtern) While the bottom would be 10, 35, 65, and 90. My current problem is that I am trying to adjust tick marks so it reflects the IUGS standard, so both the left and right side would be 5, 20, 60, and 90. Like everything in life, its best to learn how to walk before one learns to run, right? With that in mind I decided to modify this chart to be more inline with a IUGS Plutonic Diagram. So for context I am a geologist learning how to create a IUGS Plutonic Rock Diagram, Volcanic Diagram, and eventually a QAPF Diagram for ggplot2.
