Im trying to remove the x-y coordinate grid lines in my ternary plot, but I lack the knowledge of where to put in the command axis = false. I've tried different places. Can you guys help?
axis <- function(title) {
list(
title = title,
titlefont = list(
size = 20
),
tickfont = list(
size = 15
),
tickcolor = 'rgba(0,0,0,0)',
ticklen = 5
)
}
at <- list(title = "Ler <4mu", #
titlefont=list(size=20),
font=list(size=20),
tickfont=list(size=16),
range= list(n=100,min=20,max=80)
)
bt <- list(title = "Fint silt 4-16mu", #
titlefont=list(size=20),
font=list(size=20),
tickfont=list(size=16)
)
ct <- list(title = "Medium og groft silt 16-62mu", #
titlefont=list(size=20),
font=list(size=20),
tickfont=list(size=16))
p <- plot_ly(new_data,
type = 'scatterternary',
mode = 'markers',
a = as.numeric(new_data$Fraktion1),
b = as.numeric(new_data$Fraktion2),
c = as.numeric(new_data$Fraktion3),
color= as.numeric(new_data$Vandoptag),
marker = list(
size = 12
)
) %>%
layout(
title = "",
margin = list(l = 0, r=0, t=50, b=100),
ternary = list(
sum = 100,
aaxis = at ,
baxis = bt,
caxis = ct
)
)
p
This here gives me this output:
Image description; There is a X-Y plot with grid lines for x and y in over my ternary diagram. I don't want to hide the grid lines for the ternary diagram, but only for the x-y coordinate system that is overlayed. I can't post a picture of how it is looking as Im new here and apparently need some points to do so, but hope you can help and that it makes sense.