[R] 3D Plot with Date Axis?

Alex Restrepo alex.restrepo at outlook.com
Fri Oct 27 21:22:13 CEST 2017


Hello,

I would like to format the X axis of the plot created via the scatterplot3d function or any other function which will work.

Here is an example of what I am trying to do:

library("scatterplot3d")

mydf=data.frame(rate=c(1,1,4,4), age=c(2,2,5,5), market_date=c('2017-01-01', '2017-02-02', '2017-03-03', '2017-04-04'))

scatterplot3d(mydf$market_date, mydf$rate, mydf$age, xaxt="n")

axis.Date(1, mydf$market_date, format="%Y-%m-%d")

I tried to hide the x axis, but it looks like xaxt is not working for the scatterplot3d function.

Using the above example, could someone please provide me with some guidance and help?

Many Thanks,

Alex


	[[alternative HTML version deleted]]



More information about the R-help mailing list