BookmarkSubscribeRSS Feed
JulianVogel
Fluorite | Level 6

It is not the most sophisticated solution, but it is also not the worst. This is the code:

data heart;
input beat $ happiness love;
cards;
beat1 2 9
beat2 2 10
beat3 3 7
beat4 3 8
beat5 3 11
beat6 4 5
beat7 4 6
beat8 4 11
beat9 5 4
beat10 5 10
beat11 6 3
beat12 6 9
beat13 7 2
beat14 7 9
beat15 8 3
beat16 8 9
beat17 9 4
beat18 9 10
beat19 10 5
beat20 10 6
beat21 10 11
beat22 11 7
beat23 11 8
beat24 11 11
beat25 12 9
beat26 12 10
;
run;

proc sgplot data=heart; scatter y=love x=happiness; run;

 

And this is the result:
SAS Valentine's Day Data Viz Challenge.png

Explore and visualize your data

 
With a free 14-day SAS® Viya trial, you can:

 

  • Experience all the capabilities of SAS Viya Enterprise, our top-tier Viya offering.
  • Use our pre-loaded data or upload your own (up to 1GB).
  • Access training resources and videos.
  • Add up to four other users so your team can see how Viya works for everyone.
Register Now
Discussion stats
  • 0 replies
  • 254 views
  • 4 likes
  • 1 in conversation