How I can change vertical axis from time (6:00am, 7:00am etc) to pair number (higher school) (for example num1,num2,num3).
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?
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.
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.
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).