How can I know the position for each label in the plot

How can I know the position in the x-axis for each label in my violin(x, y, group = x, linewidth=1, dpi = 300) boxplot!(x, y, fillalpha=0.4, fillcolor = colorant"gray", linecolor=:black, linewidth=1, legend=false, dpi = 300) dotplot!(x, y, marker=(:black, stroke(0)), markeralpha=0.05, legend=false, dpi = 300) where y is a numeric value but x is a category. I mean, like x = [“a”, “b”, “c”, “d”] ans y = [1, 2, 3,4], but I can’t dertermine where is the labels for my x-axis in the plot, the precise position of “a”, “b”, “c” and “d”.

Hello, please use xticks():

using StatsPlots, Random

x = ["a" "b" "c" "d"]
y = randn(1000, 4)
p = violin(x, y)
xticks(p)