Dear Hi, everyone, I want to add two vertical line in the histogram chart to show where are 20 Percentile and 80 Percentile.
Is there any way to do it using syntax instead of doing it manually? I am using version 18.
Thanks a lot ! Gad SET seed=943997. input program. loop a =1 to 100 by 1. end case. end loop. end file. end input program. compute x = NORMAL(0.25). ***EXECUTE. FREQUENCIES VARIABLES=x /FORMAT=NOTABLE /PERCENTILES=20.0 80.0 /HISTOGRAM NORMAL /ORDER=ANALYSIS. |
I am out of the office until Tuesday September 4th and will reply to emails at that time.
If you need immediate assistance, please contact Kay Gates 303-982-6565 or
[hidden email] Heather
|
In reply to this post by Gad Chen
I will be out of the office until Tuesday, September 4. I will respond to your e-mail as soon as possible on my return. |
In reply to this post by Gad Chen
Hello,
If you use the R plugin, you could use ggplot2:
require(ggplot2)
df <- data.frame(x=round(runif(1000, 0, 10))) # replace with your own data p <- ggplot(df, aes(x=x)) + geom_histogram() + geom_vline(xintercept=c(2, 8), colour="red") ggsave("d:/temp/graph.png", p) p Regards,
Albert-Jan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
I am PTOB today, Friday 31 August. For assistance with
the MITRE Innovation Program please contact the [hidden email] For assistance with Project/Portfolio Pages or Discover, please contact the
[hidden email] For assistance with
other Innovation Zone sites, such as CI&T InZone, please contact [hidden email]. Regards, Mary Lou |
In reply to this post by Gad Chen
If you know where to specify the lines you can use
I briefly tried to make the percentiles via summary functions (i.e. |
Oh boy here come another dozen out of office replies. Playing around some more I figured out at least one way to do it directly within GGRAPH statments. I've had problems in the past before specifying varying "N" graphical summaries within the same GRAPHDATASET command, so I tried the summary functions I was talking about before but piping them to seperate GRAPHDATASETS. Below is an example.
I realize reading and parsing GGRAPH statements isn't the most pleasant. If you have any questions let me know.
|
This text from the CSR might clarify the
problems you have had with graphical summaries.
When the variable specification includes an aggregation function and does not include the CASEVALUE function, the graph dataset is aggregated. Any stand-alone variables in the variable specification act as categorical break variables for the aggregation (including scale variables that are not parameters of a summary function). The function is evaluated for each unique value in each break variable. When the variable specification includes only variables or includes the CASEVALUE function, the graph dataset is unaggregated. The built-in variable $CASENUM is included in the unaggregated dataset. $CASENUM cannot be specified or renamed in the variable specification, but you can refer to it in the graph specification. An unaggregated graph dataset includes a case for every case in the IBM® SPSS® Statistics dataset. An aggregated dataset includes a case for every combination of unique break variable values. For example, assume that there are two categorical variables that act as break variables. If there are three categories in one variable and two in the other, there are six cases in the aggregated graph dataset, as long as there are values for each category. Note: If the dataset is aggregated, be sure to include all of the break variables in the graph specification (the ViZml or GPL). For example, if the variable specification includes two categorical variables and a summary function of a scale variable, the graph specification should use one of the categorical variables as the x-axis variable and one as a grouping or panel variable. Otherwise, the resulting graph will not be correct because it does not contain all of the information used for the aggregation. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Andy W <[hidden email]> To: [hidden email] Date: 08/31/2012 06:47 AM Subject: Re: [SPSSX-L] Adding Vertial Line in chart Sent by: "SPSSX(r) Discussion" <[hidden email]> Oh boy here come another dozen out of office replies. Playing around some more I figured out at least one way to do it directly within GGRAPH statments. I've had problems in the past before specifying varying "N" graphical summaries within the same GRAPHDATASET command, so I tried the summary functions I was talking about before but piping them to seperate GRAPHDATASETS. Below is an example.
I realize reading and parsing GGRAPH statements isn't the most pleasant. If you have any questions let me know. Andy W
View this message in context: Re: Adding Vertial Line in chart Sent from the SPSSX Discussion mailing list archive at Nabble.com.
|
Free forum by Nabble | Edit this page |