Pyrite | Level 9

## Is it possible to use SGPANEL to have a graph for each group and overall?

Is there a way to have the bottom right be an Origin = any (i.e. overall distribution)? My thought is to do something like this:

``````data cars;
set sashelp.cars;
run;

data cars2;
set cars;
origin = 'any';
run;

data cars3;
set cars cars2;
run;``````

However, I feel like this may take up too much computational power if you have a particularly large dataset, so is there another way?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User

## Re: Is it possible to use SGPANEL to have a graph for each group and overall?

You don't mention any specific type of plot.

If concerned about large data with that approach then summarize the data yourself and don't have the graphing procedure do it. But if you are looking at Histogram or Density you can summarize and provide a Freq variable for a count of identical plot values to reduce the data set size (maybe, depends on your data).

You might consider a format or rounded value for largish continuous variables like price before summarizing to reduce the number of records as well. Consider if a car has a price in the \$35,000 how much practical significance comes with a difference of a couple hundred dollars for examining distributions?

Super User

## Re: Is it possible to use SGPANEL to have a graph for each group and overall?

You don't mention any specific type of plot.

If concerned about large data with that approach then summarize the data yourself and don't have the graphing procedure do it. But if you are looking at Histogram or Density you can summarize and provide a Freq variable for a count of identical plot values to reduce the data set size (maybe, depends on your data).

You might consider a format or rounded value for largish continuous variables like price before summarizing to reduce the number of records as well. Consider if a car has a price in the \$35,000 how much practical significance comes with a difference of a couple hundred dollars for examining distributions?

Discussion stats