Question

I want to generate a plot in which I'm capable of visualising the distribution of a given variable in space.

Let's say I want to know how the values of frequency bandwidth (Hz) of a bird's song are spread in space.

I tried with scatterplot3d. But I'm think this is not right.

x<-a vector with easting coordinates
y<-a vector with northing coordinates
z<-a vector with the bandwidth values (in Hz)

Then I do:

scatterplot3d(x,y,z)

Should "z" be a coordinate or can I use it as a vector of values of a given variable?

Thanks in advance!

Was it helpful?

Solution

I did it with scatterplot3d.

   scatterplot3d(Hypo$Easting,Hypo$Northing,Hypo$Song_Dur,angle=118,color="red",pch=16,highlight.3d=TRUE,xlab="Easting",ylab="Northing",type="h",lwd=1)

Where Hypo$Easting==x, Hypo$Northing==y and Hypo$Song_Dur==z(variable).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top