Hi everyone,
I am trying to make histogram or barchart and want to see the incidence of hypertension in each group. Please guide me for code.
thanks
See the two articles at the Graphically Speaking blog about Getting Started with SGPLOT - Part 5 - Histograms and Getting started with SGPLOT - Part 2 - VBAR
Thanks,
i am struggling to set y axis (Hypertension incidence (%) as incidence and x axis as my age and its categories.
Post your code please?
Are you using SAS VA, EG or Studio? Are you programming or using the GUI?
How is your data structured? Are values pre-calculated or do you need to calculate statistics? Which chart do you want, a histogram or bar chart? They are slightly different. How many groups do you have? Do you want the bars clustered or stacked for groups?
We don't have enough information to help you unless you provide more information.
A vague question, gets vague answers.
If you can't share your data, make fake data or use one of the data sets in SASHELP as a starting point.
I highly recommend sticking with SGPLOT.
The graphics gallery here has a bunch of examples you can use as a starting point.
@SChander1 wrote:
Hi everyone,
I am trying to make histogram or barchart and want to see the incidence of hypertension in each group. Please guide me for code.
thanks
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.