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
    data analytics and truck accident claims
    How Data Analytics Reduces Truck Accidents and Speeds Up Claims
    7 Min Read
    predictive analytics for interior designers
    Interior Designers Boost Profits with Predictive Analytics
    8 Min Read
    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
  • 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

Big Data moves up the stack
Fortune 500 Companies Take Advantage of Unified Communications Internally
Google Squared: A Great First Step
Why count on the brain for truth?
What Uber and Lady Gaga Can Teach You About Analytics

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

AI Document Verification for Legal Firms: Importance & Top Tools
AI Document Verification for Legal Firms: Importance & Top Tools
Artificial Intelligence Exclusive
AI supply chain
AI Tools Are Strengthening Global Supply Chains
Artificial Intelligence Exclusive
data analytics and truck accident claims
How Data Analytics Reduces Truck Accidents and Speeds Up Claims
Analytics Big Data Exclusive
predictive analytics for interior designers
Interior Designers Boost Profits with Predictive Analytics
Analytics Exclusive Predictive Analytics

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

Is Google Serious about Exploratory Search?

2 Min Read

Is CRM the New Membership Management for NFPs?

7 Min Read

Can You Digg It?

1 Min Read

Minimum Budget Maximum Impact

4 Min Read

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

data-driven web design
5 Great Tips for Using Data Analytics for Website UX
Big Data
ai in ecommerce
Artificial Intelligence for eCommerce: A Closer Look
Artificial Intelligence

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?