Is there any function in the R to ungroup the 'fill' of a plotted field?
In the graph below I am displaying the lithologies (inadvertently) in a group way, but the correct ones are displayed according to the data source I am working on, checking line by line of the lenght of the y-axis. Validation does not hit due to grouping.
Thanks in advance for your help.
Here is the source code:
library (ggplot2)
ggplot (dataset, aes (x = HOLE_NUMBER, y = length * -1, fill = litho)) +
geom_bar (aes (x = HOLE_NUMBER, y = length * -1, fill = litho), color = "black", stat = "identity", width = 0.4)
theme_classic () +
scale_fill_manual (values = c (
"" = "#FFFFFF",
"AC" = "# FF9933",
"AGT" = "# 58FFC6",
"AMNC" = "# E26B0A",
"AMNS" = "# E26B0A",
"ARN" = "# E26B0A" ......