I have the following data
df <- data.frame(dose=c("D0.5", "D1", "D2"),
len=c(4.2, 10, 29.5))
library(ggplot2)
# Basic barplot
p<-ggplot(data=df, aes(x=dose, y=len)) +
geom_bar(stat="identity") +
theme(axis.ticks.y = element_blank())
p
# Horizontal bar plot
p + coord_flip()
which gives me the following charts
I want to add ticks in positions shown in the following using with the black ticks
Please can someone suggest how I can achieve this in ggplot2.