Cookies help us display personalized product recommendations and ensure you have great shopping experience.

By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    image fx (67)
    Improving LinkedIn Ad Strategies with Data Analytics
    9 Min Read
    big data and remote work
    Data Helps Speech-Language Pathologists Deliver Better Results
    6 Min Read
    data driven insights
    How Data-Driven Insights Are Addressing Gaps in Patient Communication and Equity
    8 Min Read
    pexels pavel danilyuk 8112119
    Data Analytics Is Revolutionizing Medical Credentialing
    8 Min Read
    data and seo
    Maximize SEO Success with Powerful Data Analytics Insights
    8 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-25 SmartData Collective. All Rights Reserved.
Reading: Stylin’
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Uncategorized > Stylin’
Uncategorized

Stylin’

Editor SDC
Editor SDC
2 Min Read
SHARE

In my last blog post I shared some templates that added functionality — specifically, maps. That is one use of templates; allowing custom features or new and relatively ‘untested’ features to be used without needing a lot of new user controls, syntax or whatever. A second use is more prosaic, but can be a real […]

In my last blog post I shared some templates that added functionality — specifically, maps. That is one use of templates; allowing custom features or new and relatively ‘untested’ features to be used without needing a lot of new user controls, syntax or whatever. A second use is more prosaic, but can be a real time-saver: custom styles.

Styled Mosaic-like Plot

Styled Mosaic-like Plot.

The figure above (click to show full-size version) is an example of how a template can contain not only structural information, but also style choices. The range of possible style options available through templates is wider than that available through standard GUI choices, and the above figure shows some gradient details, as well as re-arranging the legend to be in the middle of the chart and making room for it there.

More Read

Links: Risk Intelligence Vendors Review: 2008
Use a Spreadsheet for a Database: circa 1986
I’m No Google Fan Boy, But…
Power to the Tablets: The BYOD Bullseye
New Tools, Same Problems on IT Projects

If you download the template from the zip file linked at the bottom of this post, you can use the following SPSS 17 syntax to use it:

GGRAPH
 /GRAPHDATASET NAME="graphdataset"
 VARIABLES=jobcat[LEVEL=nominal] gender[LEVEL=nominal]
   educ[LEVEL=nominal]
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=VIZTEMPLATE(NAME="StyledMosaic1"[LOCATION=LOCAL]
 MAPPING( "Y"="store"[DATASET="graphdataset"]
   "BinaryGroup"="hardback"[DATASET="graphdataset"]
   "X"="category"[DATASET="graphdataset"]))
 VIZSTYLESHEET="Traditional"[LOCATION=LOCAL]
 LABEL="StyledMosaic1: hardback-category-store"
 DEFAULTTEMPLATE=NO.

For your data, all you need do is change the data mappings (make sure the BinaryGroup variable really is a categorical variable with two values — a flag, in other words). Enjoy.
StyledMosaicTemplates

Share This Article
Facebook Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

image fx (2)
Monitoring Data Without Turning into Big Brother
Big Data Exclusive
image fx (71)
The Power of AI for Personalization in Email
Artificial Intelligence Exclusive Marketing
image fx (67)
Improving LinkedIn Ad Strategies with Data Analytics
Analytics Big Data Exclusive Software
big data and remote work
Data Helps Speech-Language Pathologists Deliver Better Results
Analytics Big Data Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

Mr. Perfect

3 Min Read

Best Market Research Survey Ever

4 Min Read

Playing with the feeds…

0 Min Read

Building Trust with Consumers: Is Disclosure Enough?

5 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

ai is improving the safety of cars
From Bolts to Bots: How AI Is Fortifying the Automotive Industry
Artificial Intelligence
ai chatbot
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
Chatbots

Quick Link

  • About
  • Contact
  • Privacy
Follow US
© 2008-25 SmartData Collective. All Rights Reserved.
Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?