Plotting a function on a date axis - plot

In one column, I have a series of dates. In another column, I have a series of values. I'd like to plot the values on the y axis, and the dates on the x axis -- but I'd like a proper scale on the x axis, as some of the dates are distant by hundreds of days while some are only a week apart. So the points shouldn't be equally horizontally spaced from one another.

Use the XY (Scatter) chart type, which will display the dates proportionally. The other chart types (Column, Bar, Area, Line) will all display points equally spaced horizontally.

Related

Change vertical axis from time to number on timegrid

How I can change vertical axis from time (6:00am, 7:00am etc) to pair number (higher school) (for example num1,num2,num3).

How to combine multiple 2D R plots into a single 3D plot

I am trying to stack multiple 2d plots into a single 3d plot in R.
For example, I want to try and put these plots
into a single 3d image. The z axis would be the biomass density, y axis be the size and the x axis be the time step (and then hopefully I could use a surface plot to join up all the lines). My aim is to try and show the wave travelling through the size over a long period of time instead of showing lots of images.
Does anyone know how to do this?

I have a dataset of 3 dimensions. Two of them are of categorical type. How do I plot them in 3dplot?

To illustrate:
x=rep(c(rep(1,4),rep(3,4),rep(6,4)),4)
y=rep(c(1,10,100,1000),12)
z=runif(48)
mydata=cbind(x,y,z)
scatterplot3d(mydata,pch=16,xlab="months",
ylab="parameter",zlab="values")
Here, x is number of months of which I have only three categories and y are values of four parameters used in my study. I want my x axis to show only 1,3,6 and the y axis to show only 1,10,100,1000 with equidistant separation on the axis. The present plot plots y axis as 0,200,400,600,800,1000. So my three data points pertaining to 1,10 and 100 values of y are restricted to a narrow zone.
set(gca,'yscale','log')
A log scale on the y-axis should give you what you're looking for in this instance. More generally, if you want axis points equidistant regardless of their value you might consider storing their values as a string and see what that does for you.

R find an area of a filled countour plot made from matrix

Is there a way to calculate an area of a filled countour like plot in r?
This image is just an example and not representative of my data. But I would, for example, want to calculate all areas above 1600. My data is in matrix for with speeds in each cell. The columns represent evenly spaced time intervals however my y axis or rows each represent a particular length and are not evenly spaced. The filled contour plot would be interpolating. I would like to bypass creating a color plot all together and just find the are of say speeds less than 35mph.

jfreechart xy series plot data points

In JFreechart xySeries I want to plot the lines using a very dense set of points in order to show curves with precision, however, I want to plot the points with less density. For example, I have 100 data points each one is 1 unit apart on the x axis, but I only want to plot the point every 5 unit. I do,however, want the lines to be connected every 1 unit in order to show the curve with high density.
Is this possible?
You can subclass XYLineAndShapeRenderer and override getItemShapeVisible(int series, int item).

Resources