Minitab Script to Save Regression Plots to an Image File

O

omegab

#1
Hi,

I have started to script Minitab and I have it working well. But I cannot seem to find a way to save the residual plots to a file... it says that the GSAVE command is not available.

E.g. The script
Code:
ONEWAY 'Response_Column' 'Factor_Column'
GIndPlot;
GSAVE "C:\output_file.png"
PNGH.
I can save Multiple Effects graphs with no issue, but the problem here seems to be that GINDPLOT is a subcommand and GSAVE is not available in that circumstance.

Is there another Minitab command to just do that plot on it's own?
 
Elsmar Forum Sponsor

Miner

Forum Moderator
Staff member
Admin
#3
Try using INDPLOT separately instead of GINDPLOT from ONEWAY. GSAVE is a subcommand of INDPLOT.
 
O

omegab

#4
Hi, how do I get the same INDPLOT I would get as part of the Oneway because I have been trying.

Actually to clarify I am trying to Image save the subcommand GFOURPACK
 

Miner

Forum Moderator
Staff member
Admin
#6
Here are the commands to create the 4 graphs individually (using Minitab's example dataset for the 1-way ANOVA):

MTB > Name c3 "RESI1" c4 "FITS1"
MTB > Oneway 'Durability' 'Carpet';
SUBC> Residuals 'RESI1';
SUBC> Fits 'FITS1';
SUBC> Tukey 5;
SUBC> GIndPlot;
SUBC> GBoxplot;
SUBC> GFourpack.

One-way ANOVA: Durability versus Carpet

MTB > PPlot 'RESI1';
SUBC> Normal;
SUBC> Symbol;
SUBC> FitD;
SUBC> NoCI;
SUBC> Grid 2;
SUBC> Grid 1;
SUBC> MGrid 1.

Probability Plot of RESI1

MTB > Histogram 'RESI1';
SUBC> Bar.

Histogram of RESI1
 
MTB > Plot 'RESI1'*'FITS1';
SUBC> Reference 2 0;
SUBC> Symbol.

Scatterplot of RESI1 vs FITS1

MTB > TSPlot 'RESI1';
SUBC> Reference 2 0;
SUBC> Symbol;
SUBC> Connect.

Time Series Plot of RESI1

You can either add the GSAVE subcommand to each, or use the LAYOUT command to combine them into a single graph then use GSAVE.
 
O

omegab

#7
Miner thank you very much for your very helpful reply. The first Probability plot looks different than the one from the Gfourpack... specifically there are three blue lines instead of a single straight line. Can you please suggest what I need to change?
 
Thread starter Similar threads Forum Replies Date
O Importing Data via Script - Assign Column as Text (Minitab) Using Minitab Software 3
R Minitab Multiple Regressions Script Help Using Minitab Software 1
F Minitab 19 Anova or X bar # of distinct catagories Using Minitab Software 1
P Pooled Standard Error - Minitab Statistical Analysis Tools, Techniques and SPC 0
S Asterisk in DOE minitab software Using Minitab Software 23
B Does anybody know how to get older versions of Minitab to work in Windows 10? Quality Tools, Improvement and Analysis 9
M Minitab Capability of the Population (no sampling) Using Minitab Software 11
Z Minitab - Updating Graph with specific data points Using Minitab Software 2
S Need help with analysing a survey on minitab Using Minitab Software 1
M Minitab assistant: 1-Sample % Defective Test Using Minitab Software 1
0 Interesting Discussion Analysis of half normal distribution in minitab Using Minitab Software 11
G Batch printing reports in Minitab Using Minitab Software 3
B Minitab Type 1 Gage Study on True Position Question Measurement Uncertainty (MU) 1
V Minitab GRR crossed Xbar and r method macro needed Using Minitab Software 9
I Number of decimals in equation calculated by MiniTab Using Minitab Software 0
A Acceptance p-value for linearity and bias analysis in minitab results Gage R&R (GR&R) and MSA (Measurement Systems Analysis) 0
M How to change the display of optimization plot in Minitab 18 Using Minitab Software 2
M Minitab tool to evaluate PM (Preventive Maintenance) process Using Minitab Software 6
E Input to ANOVA 1-WAY - How can I perform this analysis in minitab? Using Minitab Software 2
N Tolerance Interval plots in Minitab Statistical Analysis Tools, Techniques and SPC 0
J Including Repeats in DoE using Minitab Using Minitab Software 5
A Minitab 18: How to automate GRR Summary Table save Reliability Analysis - Predictions, Testing and Standards 1
N What subcommands can be used with "Stop" in Minitab 18? Using Minitab Software 8
S Minitab - Factor Analysis: Label on second series of data for Biplot Using Minitab Software 4
J Which Anova dropdown to use for R&R in Minitab? Gage R&R (GR&R) and MSA (Measurement Systems Analysis) 1
J DoE - Number of runs in Plackett-Burman (Minitab) Using Minitab Software 2
D Asterix when pasting a column of values from Excel into Minitab (V17) Using Minitab Software 5
A Generating samples from a population in Minitab Using Minitab Software 0
Ron Rompen Random data generation in Minitab Statistical Analysis Tools, Techniques and SPC 2
I DOE: High variance and small effects in Minitab Using Minitab Software 1
B Informational Expanded Gage R&R Analysis using Minitab Gage R&R (GR&R) and MSA (Measurement Systems Analysis) 18
R Rank Deficiency Error Minitab Using Minitab Software 7
H Minitab 15 - Factorial Design - 3 factors: 4x3x2 - How to? Using Minitab Software 4
A Capability Analysis for Packaging Seal Strength with spec. >0.1 Kgf using Minitab Using Minitab Software 6
Coury Ferguson MiniTab 17 Question-Standard Deviation Default Capability, Accuracy and Stability - Processes, Machines, etc. 5
N Regression Model (Minitab 18) - Which values my input parameters should have Using Minitab Software 2
L MINITAB 17 - Changing Data Using Minitab Software 3
R Conjoint Analysis - Minitab 18 Statistical Analysis Tools, Techniques and SPC 2
F How to make an ANOVA of a design with repeats (not replicates) in Minitab? Using Minitab Software 18
W Definitive screening design in Minitab 17 Manufacturing and Related Processes 1
S Minitab runs at different speeds on identical PCs Using Minitab Software 5
S Response Surface Method to create design matrix in Minitab Using Minitab Software 5
S Minitab limit definition from R & R Using Minitab Software 4
G ANOVA GR&R: Minitab vs AIAG MSA results Gage R&R (GR&R) and MSA (Measurement Systems Analysis) 7
S Standard Deviation Selection on Control Charts - Minitab "pooled deviation" Statistical Analysis Tools, Techniques and SPC 3
P Minitab Data Analysis - Understanding if a Process is in Control or Not Using Minitab Software 2
P Basic Minitab Help - It's about Linear Regression Using Minitab Software 1
A Taguchi Minitab - Continuous Data - What should I choose as response variable? Using Minitab Software 3
K Taguchi Experiments for Factorial Design Analysis - Reliability of Minitab Results Using Minitab Software 1
G How to create a mixed OAs in Minitab Using Minitab Software 1

Similar threads

Top Bottom