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

Business Sponsorship
Is AI the Biggest Threat to your Job?
Teradata Partners User Group
#25: Here’s a thought…
Data Breach and Spear Phishing

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

Componentizing Software

8 Min Read

How to Blog About Twitter Without Blogging About Twitter

4 Min Read

TEDx: Big Brains Meet Barcamps

4 Min Read

A Mouse With His Head In The Clouds – Can Cloud Computing Help the Studios Help Themselves

7 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 chatbot
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
Chatbots
AI and chatbots
Chatbots and SEO: How Can Chatbots Improve Your SEO Ranking?
Artificial Intelligence Chatbots Exclusive

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?