How to keep miliseconds?

Hello, I would like to use Plotly in R to plot time series with time precise to miliseconds. I have the time stored as POSIXct. When I plot time series using plot_ly(), I get the points rounded to closest seconds, so I get several points at each second with different y values. Can I somehow get better precision than 1s? Thank you.