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
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.