I am trying to add the category and percent to each level in a stack bar, example:
Category <- c(rep(c("A", "B", "C", "D"), times = 4))
Data <- data.frame( Category)
p= ggplot(Data,aes(x=factor(""),fill=factor(Category)))+
geom_bar(position="fill")+
geom_text(aes(label=scales::percent(..count../sum(..count..))), stat='count',position=position_fill(vjust=0.5))
This produce this graph:

But I try to get this graph whit this command, but I failed
Graph expected

p=ggplot(Data,aes(x=factor(""),fill=factor(Category)))+
geom_bar(position="fill")+
geom_text(aes(label=scales::percent(..count../sum(..count..))), stat='count',position=position_fill(vjust=0.5))
p + geom_text(data=Data, aes(x=factor(""),label = Category), position=position_fill(vjust=0.5))

