LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2008)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 11 Jan 2008 16:26:12 +0100
Reply-To:     la volta statistics <schmidhauser@lavolta.ch>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         la volta statistics <schmidhauser@lavolta.ch>
Subject:      AW: Simple Scatterplot
Comments: To: Fred Grehl <leChef1001@web.de>, burke.jasonm@gmail.com
In-Reply-To:  <14756193.post@talk.nabble.com>
Content-Type: text/plain; charset="US-ASCII"

Hi Fred

I am getting the same result as you, using the example Jason Burke provided. However, if you change the format of the time variable such as:

FORMAT date_time (TIME8).

then the points appear in the correct position in the chart, -Only the date is then not shown in the x-axis. I havn't figure out so far, how to format the x-axis in a way that it provides the date an the time when the data format in the data sheet is set to TIME8. I am using SPSS 15 and the varaible date_time is set to scale.

Christian

-----Ursprungliche Nachricht----- Von: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]Im Auftrag von Fred Grehl Gesendet: Freitag, 11. Januar 2008 15:22 An: SPSSX-L@LISTSERV.UGA.EDU Betreff: Re: Simple Scatterplot

Hi Jason,

Jason Burke wrote: > > Hi Fred, > > I am using SPSS 16 and here is an example that works nicely for me, > using the sample SPSS data file called Employee Data: > > > COMPUTE date_time=$TIME. > COMPUTE date_time=date_time + RV.NORMAL(0,36000) . > FORMAT date_time (DATETIME20) . > > GGRAPH > /GRAPHDATASET NAME="data" VARIABLES=date_time jobcat > /GRAPHSPEC SOURCE=INLINE. > BEGIN GPL > SOURCE: s=userSource(id("data")) > DATA: date_time=col(source(s), name("date_time")) > DATA: jobcat=col(source(s), name("jobcat"), unit.category()) > ELEMENT: point(position(date_time*jobcat)) > GUIDE: axis(dim(1), label("Incident Date")) > GUIDE: axis(dim(2), label("Job Class")) > SCALE: cat(dim(2), include("1", "2", "3")) > END GPL . >

This example shows the same strange result.

Even when changing to a numeric variable on the second axis the problem still persists.

Example: Variable: ID, Type: Numeric, Measure: Scale Variable: Time, Type: Date, Measure: Scale

ID; Time 2.0; 24-Dec-2007 10:48 1.0; 24-Dec-2007 10:49 1.0; 24-Dec-2007 10:49 1.0; 24-Dec-2007 11:15 1.0; 24-Dec-2007 10:49 1.0; 24-Dec-2007 10:50 2.0; 25-Dec-2007 08:50 1.0; 25-Dec-2007 08:51

The result: http://fdahl.de/f1.png

Jason Burke wrote: > > The things that may causing an undesired result is the range on the > date-time axis. The smaller the range, the greater the detail that is > revealed in the scale. >

How to change the scale on a time axis? Using ChartEditor i cannot specify a period of time as major increment, for example so that a major tick appears every 5 minutes.

Thanks for help, Fred

Jason Burke wrote: > > On 1/11/08, leChef1001 <leChef1001@web.de> wrote: >> Hi all, >> >> i'm using spss 16 and would like to plot a scatterplot with a scale time >> variable (Example: 24-Dec-07 10:48) on the first axis. >> Each piont of time maps to a specific corresponding string which is on >> the >> second axis. >> >> When using ChartBuilder the resulting scatterplot only displays the >> plotted >> pionts at 24-Dec-07 00:00, 25-Dec-07 00:00 and so on. All points of time >> between are also plotted at these piont of times. >> For example >> 24-Dec-07 10:48, 24-Dec-07 17:48 is plotted at 25-Dec-07 00:00 >> and >> 25-Dec-07 08:12 is also plottet at 25-Dec-07 00:00. >> >> I just want each point plotted at the point of time it occurs. >> >> Please help. >> >> Thanks in advance, >> Fred > >

-- View this message in context: http://www.nabble.com/Simple-Scatterplot-tp14748764p14756193.html Sent from the SPSSX Discussion mailing list archive at Nabble.com.

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


Back to: Top of message | Previous page | Main SPSSX-L page