Giter VIP home page Giter VIP logo

rogerjdeangelis / utl_fun_with_line_printer_graphics_editor Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 5 KB

Barchart with super imposed map of the US lower 48 states. Keywords: sas sql join merge big data analytics macros oracle teradata mysql sas communities stackoverflow statistics artificial inteligence AI Python R Java Javascript WPS Matlab SPSS Scala Perl C C# Excel MS Access JSON graphics maps NLP natural language processing machine learning igraph DOSUBL DOW loop stackoverfl SAS community.

License: MIT License

SAS 100.00%

utl_fun_with_line_printer_graphics_editor's Introduction

utl_fun_with_line_printer_graphics_editor

Barchart with super imposed map of the US lower 48 states. Keywords: sas sql join merge big data analytics macros oracle teradata mysql sas communities stackoverflow statistics artificial inteligence AI Python R Java Javascript WPS Matlab SPSS Scala Perl C C# Excel MS Access JSON graphics maps NLP natural language processing machine learning igraph DOSUBL DOW loop stackoverfl SAS community. Barchart with superimposed map of the US lower 48 states

see githup
https://github.com/rogerjdeangelis/utl_fun_with_line_printer_graphics_editor

Works with WPS but you need slighly differerent options for barwidth and spacing.

Looks best with the sasfont, less space between lines?

INPUT
=====

Frequency data for five states "Vermont","Oregon","Idaho","Ohio","Texas";

WORK.HAVE total obs=488

 Obs     STATE

   1    Vermont
   2    Vermont
   3    Vermont
 ...
 484    Texas
 485    Texas
 486    Texas
 487    Texas
 488    Texas

data have;

  do state="Vermont","Oregon","Idaho","Ohio","Texas";
     do rec=1 to 200;
       if uniform(5731)<.5 then output;
     end;
  end;
  drop rec;
run;quit;


WANT
====

  http://ascii.co.uk/art/usa

110 +                                110
    |                               *****
    |                               *****
    |                               *****
100 +                               *****                    99
    |        95                     *****        95         *****
    |       *****        92         *****       *****       *****
    |       *****       *****       *****       *****       *****
 90 +       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
 80 +       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
 70 +       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
    |     ________________________                            / \
 60 +      |    ||         |      |------ _  _           ____(  _)
    |     |     |(         |      |    /_/ \// _        / | || /
    |     |_____| \        |------|   /  --\/ / \    __/  |X/|(
    |     |     |  \_------|      |   \_   | (  (   /     |/_|/
 50 +     |  X  | X  |     |______|_____\ _| |   \_/ ___ _|_|/
    |     (_____|____|     |       \     \ \_)------/   ) )
    |     |   |    | |_____|__      )____/  |  | X  |___)/
    |     (   |    |    |     |_____|    \  |  /---/\__  \
 40 +     )   |    |    |     |      \    \ )_/    \ / \_/
    |     \   \    |    |     |       |    ||______//____|
    |      |   \   |____|_____|_______|----|       /      \
    |      )    \  /    |    |___     |    /______/_____  /
 30 +      \     \|     |    |  |     |   |   |   / \   \/
    |       \     \     |    |  |__   |---/   |   \  \  /
    |        \_   /     |    |     ---)   )   |   |   \/
    |          \__\_____|_----        \   |-|_|_---___/
 20 +                      \      X    )__  |   \/\_  \
    |                       \_/\      /   --        )  \
    |                           \    /              \  (
    |                            \  (                |  |
 10 +                             \__\                \_|
    |       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
    |       *****       *****       *****       *****       *****
    --------------------------------------------------------------------
            Idaho        Ohio      Oregon       Texas      Vermont

                                    STATE

SOLUTION
========

  Goto http://ascii.co.uk/art/usa and copy the map you want to insert into
  a bar chart

  * create the bar chart;

  options ls=80 ps=60;
  proc chart data=have;
  vbar state;
  run;quit;

  * copy and past the YSA map wherever you want it.
  * Mark the states plotted with an X
  * Add heights?

utl_fun_with_line_printer_graphics_editor's People

Contributors

rogerjdeangelis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.