Hiding the title of Legend in charts

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Hiding the title of Legend in charts

behnaz shirazi-2
Hello dear all,

I wonder is there any way to hide the lable of legend in GRAPH !
I am using this command:
GRAPH   /BAR=PCT BY sex BY distinct.

I don't want to hide the whole legend just I don't want to see the distinct
name as a title in my legend.


Thank you
Behnaz

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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
Reply | Threaded
Open this post in threaded view
|

Re: Hiding the title of Legend in charts

Perdue, Richard
HI Folks

I'm trying to create a graph that looks very much like a traditional box and whiskers graph, except that I'm showing mean values of 5 different variables as opposed to the traditional range measures of one variable.
Does anybody have any experience either with SPSS or another graphics package in creating such a graph?=20

Thanks

Rick Perdue

Professor and Department Head
Department of Hospitality and Tourism Management
Virginia Tech
Blacksburg, VA 24061
540-231-5515
FAX 540-231-8313

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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
Reply | Threaded
Open this post in threaded view
|

Re: Hiding the title of Legend in charts

ViAnn Beadle
In reply to this post by behnaz shirazi-2
The only way to suppress the legend title using the GRAPH command is to give
the legend variable a null variable label.

If you use the GPL to create the chart, by default, there is no legend
label, just the legend category labels. If you use Chart Builder to generate
the GPL, edit the GPL and remove the appropriate GUIDE statement which will
look something like this:

  GUIDE: legend(aesthetic(aesthetic.color.interior),
label("your_clustering_variable_label"))

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
behnaz shirazi
Sent: Monday, December 03, 2007 10:14 AM
To: [hidden email]
Subject: Hiding the title of Legend in charts

Hello dear all,

I wonder is there any way to hide the lable of legend in GRAPH !
I am using this command:
GRAPH   /BAR=PCT BY sex BY distinct.

I don't want to hide the whole legend just I don't want to see the distinct
name as a title in my legend.


Thank you
Behnaz

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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
[hidden email] (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
Reply | Threaded
Open this post in threaded view
|

Summary of separate variables boxplots (was Hiding the title of Legend in charts)

ViAnn Beadle
In reply to this post by Perdue, Richard
IGRAPH, GRAPH, and GGRAPH will create this chart.

Probably the easiest way is to use Graphs>Boxplots and pick the second radio
button on the gating dialog to request summaries of separate variables. This
will generate a GRAPH command.

To create this chart using IGRAPH (Graphs>Interactive>Boxplot), drag your
multiple summary variables to the y-axis. This will generate an IGRAPH
command.

You can't get there with Chart Builder but GPL will also support this chart
using separate ELEMENT statements.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Perdue, Richard
Sent: Monday, December 03, 2007 10:54 AM
To: [hidden email]
Subject: Re: Hiding the title of Legend in charts

HI Folks

I'm trying to create a graph that looks very much like a traditional box and
whiskers graph, except that I'm showing mean values of 5 different variables
as opposed to the traditional range measures of one variable.
Does anybody have any experience either with SPSS or another graphics
package in creating such a graph?=20

Thanks

Rick Perdue

Professor and Department Head
Department of Hospitality and Tourism Management
Virginia Tech
Blacksburg, VA 24061
540-231-5515
FAX 540-231-8313

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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
[hidden email] (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
Reply | Threaded
Open this post in threaded view
|

Re: Summary of separate variables boxplots (was Hiding the title of Legend in charts)

Keith McCormick
Hi All,

I am a big fan of GPL, but the GPL is this case might seem
complicated. One of the best ways requires a "blend".

First this is a stripped down version of what you paste when you do a
one variable boxplot from chartbuilder. A boxplot of variable 'a'

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=a[LEVEL=SCALE] MISSING=
  LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: a=col(source(s), name("a"))
 COORD: rect(dim(1), transpose())
 ELEMENT: schema(position(bin.quantile.letter(a)))
END GPL.

Here is the syntax that you would need to do 5 variables, a thru e.

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=a b c d e
MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: a=col(source(s), name("a"))
 DATA: b=col(source(s), name("b"))
 DATA: c=col(source(s), name("c"))
 DATA: d=col(source(s), name("d"))
 DATA: e=col(source(s), name("e"))
 ELEMENT: schema(position(bin.quantile.letter("a"*a+"b"*b+"c"*c+"d"*d+"e"*e)))
END GPL.

I hope this doesn't talk anyone out of GPL. It is usually simpler, and
everything, it seems, is moving in the GPL direction.

Keith
www.keithmccormick.com




On 12/3/07, ViAnn Beadle <[hidden email]> wrote:

> IGRAPH, GRAPH, and GGRAPH will create this chart.
>
> Probably the easiest way is to use Graphs>Boxplots and pick the second radio
> button on the gating dialog to request summaries of separate variables. This
> will generate a GRAPH command.
>
> To create this chart using IGRAPH (Graphs>Interactive>Boxplot), drag your
> multiple summary variables to the y-axis. This will generate an IGRAPH
> command.
>
> You can't get there with Chart Builder but GPL will also support this chart
> using separate ELEMENT statements.
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
> Perdue, Richard
> Sent: Monday, December 03, 2007 10:54 AM
> To: [hidden email]
> Subject: Re: Hiding the title of Legend in charts
>
> HI Folks
>
> I'm trying to create a graph that looks very much like a traditional box and
> whiskers graph, except that I'm showing mean values of 5 different variables
> as opposed to the traditional range measures of one variable.
> Does anybody have any experience either with SPSS or another graphics
> package in creating such a graph?=20
>
> Thanks
>
> Rick Perdue
>
> Professor and Department Head
> Department of Hospitality and Tourism Management
> Virginia Tech
> Blacksburg, VA 24061
> 540-231-5515
> FAX 540-231-8313
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
> [hidden email] (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
> [hidden email] (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
[hidden email] (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
Reply | Threaded
Open this post in threaded view
|

Re: Summary of separate variables boxplots (was Hiding the title of Legend in charts)

ViAnn Beadle
Presumably you were talking about the complexity of the algebra here but a
simpler way is to do the implicit blend with multiple element statements:

  ELEMENT: schema(position(bin.quantile.letter("a"*a)), label(id))
  ELEMENT: schema(position(bin.quantile.letter("b"*b)), label(id))
  ELEMENT: schema(position(bin.quantile.letter("c"*c)), label(id))
  ...
-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Keith McCormick
Sent: Monday, December 03, 2007 3:32 PM
To: [hidden email]
Subject: Re: Summary of separate variables boxplots (was Hiding the title of
Legend in charts)

Hi All,

I am a big fan of GPL, but the GPL is this case might seem
complicated. One of the best ways requires a "blend".

First this is a stripped down version of what you paste when you do a
one variable boxplot from chartbuilder. A boxplot of variable 'a'

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=a[LEVEL=SCALE] MISSING=
  LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: a=col(source(s), name("a"))
 COORD: rect(dim(1), transpose())
 ELEMENT: schema(position(bin.quantile.letter(a)))
END GPL.

Here is the syntax that you would need to do 5 variables, a thru e.

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=a b c d e
MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: a=col(source(s), name("a"))
 DATA: b=col(source(s), name("b"))
 DATA: c=col(source(s), name("c"))
 DATA: d=col(source(s), name("d"))
 DATA: e=col(source(s), name("e"))
 ELEMENT:
schema(position(bin.quantile.letter("a"*a+"b"*b+"c"*c+"d"*d+"e"*e)))
END GPL.

I hope this doesn't talk anyone out of GPL. It is usually simpler, and
everything, it seems, is moving in the GPL direction.

Keith
www.keithmccormick.com




On 12/3/07, ViAnn Beadle <[hidden email]> wrote:
> IGRAPH, GRAPH, and GGRAPH will create this chart.
>
> Probably the easiest way is to use Graphs>Boxplots and pick the second
radio
> button on the gating dialog to request summaries of separate variables.
This
> will generate a GRAPH command.
>
> To create this chart using IGRAPH (Graphs>Interactive>Boxplot), drag your
> multiple summary variables to the y-axis. This will generate an IGRAPH
> command.
>
> You can't get there with Chart Builder but GPL will also support this
chart

> using separate ELEMENT statements.
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
> Perdue, Richard
> Sent: Monday, December 03, 2007 10:54 AM
> To: [hidden email]
> Subject: Re: Hiding the title of Legend in charts
>
> HI Folks
>
> I'm trying to create a graph that looks very much like a traditional box
and
> whiskers graph, except that I'm showing mean values of 5 different
variables

> as opposed to the traditional range measures of one variable.
> Does anybody have any experience either with SPSS or another graphics
> package in creating such a graph?=20
>
> Thanks
>
> Rick Perdue
>
> Professor and Department Head
> Department of Hospitality and Tourism Management
> Virginia Tech
> Blacksburg, VA 24061
> 540-231-5515
> FAX 540-231-8313
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
> [hidden email] (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
> [hidden email] (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
[hidden email] (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
[hidden email] (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