COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### 3-D graphs

• Email
• Follow

```Hi everyone,

I am trying to plot a 3-D graph. I have 3 variables and I need to represent those point in a 3-D graph, Can anyone help me please???

Miguel.

---------------------------------

Correo Yahoo!
Comprueba qu� es nuevo, aqu�
http://correo.yahoo.es
```
 0
Reply miguel_hoz (74) 11/8/2005 9:44:26 PM

See related articles to this posting

```ok, then...

I have a file with names of people and 3 variables to describe each person (var1, var2, var3).

I am trying to plot a 3-D plot, the axis X with var1, axis Y with var2 and axis Z with var3. So my intention is to see in the same plot.

I tried,
proc gplot;
plot x*y=z;
run;
quit;

but it is a bidemensional graph, I need to build 3 dimensions.
Many thanks.

Miguel.

bill_droogendyk@dofasco.ca escribi�:
Miguel;

always helpful to give us more explanation of what it is that you are trying to do. My guess would be that you could use ..

proc gplot;
plot x*y=z;
run;
quit;

Look for examples at www.sas.com under tech support

-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Miguel de la Hoz
Sent: 08 November, 2005 16:44
To: SAS-L@LISTSERV.UGA.EDU
Subject: 3-D graphs

Hi everyone,

I am trying to plot a 3-D graph. I have 3 variables and I need to represent those point in a 3-D graph, Can anyone help me please???

Miguel.

---------------------------------

Correo Yahoo!
Comprueba qu� es nuevo, aqu�
http://correo.yahoo.es

---------------------------------

Correo Yahoo!
Comprueba qu� es nuevo, aqu�
http://correo.yahoo.es
```
 0
Reply miguel_hoz (74) 11/8/2005 10:02:05 PM

```You will need to use PROC G3D to get the graph you are looking for.  The
only problem with G3D is that it will plot only the highest Z value for
same combinations of X and Y.  This can be solved by adding a small fuzz
value to the X or Y values before plotting.

So, try something like the attached code.  I will let you look at the
options in the documentation to set up plot options.  Some of the options
you can play around with is to set different size of symbols based on
values of another variable.  If there are many points to plot, I am not
sure if this plot will look good.  Give it a spin (use at your own risk):

%let options=;
%macro threedscat(data,xvar,yvar,zvar);
data _null_;
set &data end=eof;
retain minz 9E6;
minz = min(minz,&zvar);
if eof then call symput('zmin',put(minz,best12.));
run;

data prep;
set &data;
retain increment 1;
if &zvar > &zmin then do;
&xvar=&xvar + 1E-6*increment;
increment=increment+.01;
end;

proc g3d data=prep;
scatter &yvar*&xvar=&zvar
/ &options
;
run;quit;
%mend;

Jonas V. Bilenas

On Tue, 8 Nov 2005 23:02:05 +0100, Miguel de la Hoz <miguel_hoz@YAHOO.ES>
wrote:

>ok, then...
>
>I have a file with names of people and 3 variables to describe each person
(var1, var2, var3).
>
>I am trying to plot a 3-D plot, the axis X with var1, axis Y with var2 and
axis Z with var3. So my intention is to see in the same plot.
>
>I tried,
>proc gplot;
>plot x*y=z;
>run;
>quit;
>
>but it is a bidemensional graph, I need to build 3 dimensions.
>Many thanks.
>
>Miguel.
>
>
>
>bill_droogendyk@dofasco.ca escribi�:
>Miguel;
>
>always helpful to give us more explanation of what it is that you are
trying to do. My guess would be that you could use ..
>
>proc gplot;
>plot x*y=z;
>run;
>quit;
>
>Look for examples at www.sas.com under tech support
>
>-----Original Message-----
>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Miguel de la Hoz
>Sent: 08 November, 2005 16:44
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: 3-D graphs
>
>
>Hi everyone,
>
>I am trying to plot a 3-D graph. I have 3 variables and I need to
represent those point in a 3-D graph, Can anyone help me please???
>
>
>Miguel.
>
>
>---------------------------------
>
>Correo Yahoo!
>Comprueba qu� es nuevo, aqu�
>http://correo.yahoo.es
>
>
>---------------------------------
>
>Correo Yahoo!
>Comprueba qu� es nuevo, aqu�
>http://correo.yahoo.es
```
 0
Reply jonas.bilenas (222) 11/9/2005 12:44:51 PM

```Be sure and try the ACTIVEX gdevice for these if you're on a windows platform, and use ODS to output HTML.  Doing so gets you the ability to rotate the point cloud interactively w/your mouse.  I just love that...

-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Jonas Bilenas
Sent: Wednesday, November 09, 2005 4:45 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: 3-D graphs

You will need to use PROC G3D to get the graph you are looking for.  The only problem with G3D is that it will plot only the highest Z value for same combinations of X and Y.  This can be solved by adding a small fuzz value to the X or Y values before plotting.

So, try something like the attached code.  I will let you look at the options in the documentation to set up plot options.  Some of the options you can play around with is to set different size of symbols based on values of another variable.  If there are many points to plot, I am not sure if this plot will look good.  Give it a spin (use at your own risk):

%let options=;
%macro threedscat(data,xvar,yvar,zvar);
data _null_;
set &data end=eof;
retain minz 9E6;
minz = min(minz,&zvar);
if eof then call symput('zmin',put(minz,best12.)); run;

data prep;
set &data;
retain increment 1;
if &zvar > &zmin then do;
&xvar=&xvar + 1E-6*increment;
increment=increment+.01;
end;

proc g3d data=prep;
scatter &yvar*&xvar=&zvar
/ &options
;
run;quit;
%mend;

Jonas V. Bilenas

On Tue, 8 Nov 2005 23:02:05 +0100, Miguel de la Hoz <miguel_hoz@YAHOO.ES>
wrote:

>ok, then...
>
>I have a file with names of people and 3 variables to describe each
>person
(var1, var2, var3).
>
>I am trying to plot a 3-D plot, the axis X with var1, axis Y with var2
>and
axis Z with var3. So my intention is to see in the same plot.
>
>I tried,
>proc gplot;
>plot x*y=z;
>run;
>quit;
>
>but it is a bidemensional graph, I need to build 3 dimensions.
>Many thanks.
>
>Miguel.
>
>
>
>bill_droogendyk@dofasco.ca escribi�:
>Miguel;
>
>always helpful to give us more explanation of what it is that you are
trying to do. My guess would be that you could use ..
>
>proc gplot;
>plot x*y=z;
>run;
>quit;
>
>Look for examples at www.sas.com under tech support
>
>-----Original Message-----
>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Miguel de la Hoz
>Sent: 08 November, 2005 16:44
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: 3-D graphs
>
>
>Hi everyone,
>
>I am trying to plot a 3-D graph. I have 3 variables and I need to
represent those point in a 3-D graph, Can anyone help me please???
>
>
>Miguel.
>
>
>---------------------------------
>
>Correo Yahoo!
>Comprueba qu� es nuevo, aqu�
>http://correo.yahoo.es
>
>
>---------------------------------
>
>Correo Yahoo!
>Comprueba qu� es nuevo, aqu�
>http://correo.yahoo.es
```
 0
Reply pardee.r (1272) 11/9/2005 8:46:59 PM

3 Replies
39 Views

Similar Articles

12/18/2013 5:17:27 AM
page loaded in 74288 ms. (0)

Similar Artilces:

Re: 3-D graphs #4
jonas.bilenas@CHASE.COM sagely replied: >You will need to use PROC G3D to get the graph you are looking for. The >only problem with G3D is that it will plot only the highest Z value for >same combinations of X and Y. This can be solved by adding a small fuzz >value to the X or Y values before plotting. > >So, try something like the attached code. I will let you look at the >options in the documentation to set up plot options. Some of the options >you can play around with is to set different size of symbols based on >values of another variable. If there are many ...

[News] Linux Embeds 3-D Games in a 3-D Environment (Video)
Ubuntu + Beryl + World of Warcraft ,----[ Quote ] | Ubuntu Feisty 7.04 running Beryl. `---- http://video.google.com/videoplay?docid=2690866008461615113 ...

2 D and 3 D Drawings
what is the difference between two dimensional and three dimensional drawings ( 2 d and 3 d ) Maybe you are referring to 2D & 3D drawing views? A 2D view would be like what you are used to seeing. A 3D view is where you are allowed to rotate the model directly in the view. Go to "3D drawing view mode" in the SW Help. If this isn't what you are asking about, please rephrase your question. WT <karthik_eeeng@yahoo.co.in> wrote in message news:1155162787.041031.90040@b28g2000cwb.googlegroups.com... > what is the difference between two dimensional and three d...

plotting a 3-d sphere using existing 3 vectors.
hey , i have using xlsread got a file having 3 columns. Now i want to plot these 3 axes on a sphere within a certain radius of 5angstrom units. How can I do this. since the surf function only allows me to plot the X , Y axes and the z axis is a scalar .. which is the length of x, y .. please would appreciate any help on this.. ...

I need to graph data and stack the plots to create 3 graphs,...
I need to graph data and stack the plots to create 3 graphs, how do I plot more than 1 data line on each graph I currently use a code heavy solution thats clunky and need to refine the graphing part. For simplicity I want to use the waveform chart and its "Stack Plots" option. However I cannot see how to collect 2 or 3 data streams and display them on 1 of the stacked plots. The final verson will have 3 stacked plots, the top plots needs 3 data streams, The middle & bottom plots require 2 data streams. Help Appreciated Dennis, Thanks for that, I had tried your solution earlier...

Bug: D&D in kmail
In kde-3.1, I can dragNdrop attachments from a kmail message to a konqueror window showing the dir where you want them to go. In kde-3.1.94 (kde-3.2b2), if I do this, what I actually drop into the dir is the .png file representing the icon that kmail shows for the attachment. thrugoodmarshall wrote: > In kde-3.1, I can dragNdrop attachments from a kmail message to a > konqueror window showing the dir where you want them to go. > > In kde-3.1.94 (kde-3.2b2), if I do this, what I actually drop into the > dir is the .png file representing the icon that kmail shows for the > ...

How to combine three 1-D arrays into one 3-D array
Hey All, &nbsp; i am not sure if i should have approached the problem differently, but basically i am moving a three axis motor. I have created three 1-d arrays (one for each axis) that hold the points to where the motor should move, but i am now wondering if it is possible to combine these three arrays into one 3d array (so each 3D 'location' only has one index number). &nbsp; For example, if the x-axis has 5 spots, the y-axis has 4 spots, and the z-axis 3 spots, then the resultant 'cube' of locations will be 5x4x3 = 60 locations that i can select by just one index num...

[ANN] rest-graph 1.3.0
= rest-graph 1.3.0 by Cardinal Blue ( http://cardinalblue.com ) == LINKS: * http://github.com/cardinalblue/rest-graph * http://rubygems.org/gems/rest-graph * http://rdoc.info/projects/cardinalblue/rest-graph * http://groups.google.com/group/rest-graph/topics == DESCRIPTION: A super simple Facebook Open Graph API client == FEATURES: * Simple Graph API call * Simple FQL call * Utility to extract access_token and check sig in cookies == CHANGES in 1.3.0 * Now rest-graph is rescuing all exceptions from rest-client. * Added RestGraph#exchange_sessions to exchange old sessions to access tok...

US-TX-Austin: Sr. Analog Design Eng., 3-8yrs exp., Mixed-signal, A/D&D; Perm (45343757617)
US-TX-Austin: Sr. Analog Design Eng., 3-8yrs exp., Mixed-signal, A/D&D; Perm (45343757617) ========================================================================================== Position: Sr. Analog Design Eng. Reference: SMC01899 Location: Austin TX Duration: Perm Skills: REQUIREMENTS: BSEE (MSEE preferred) with experience ranging from 3-8 years. Applicants should have skills in the following areas: Mixed signal design and simulation tools, A/D & D and DSP architectures, synthesis tools, a...

US-TX-Austin: Sr. Analog Design Eng., 3-8yrs exp., Mixed-signal, A/D&D; Perm (45351157606)
US-TX-Austin: Sr. Analog Design Eng., 3-8yrs exp., Mixed-signal, A/D&D; Perm (45351157606) ========================================================================================== Position: Sr. Analog Design Eng. Reference: SMC01899 Location: Austin TX Duration: Perm Skills: REQUIREMENTS: BSEE (MSEE preferred) with experience ranging from 3-8 years. Applicants should have skills in the following areas: Mixed signal design and simulation tools, A/D & D and DSP architectures, synthesis tools, a...