HRQoLplot: Spider plot of the dimensions of the Short Form-36 Health...

View source: R/HRQoLplot.R

HRQoLplotR Documentation

Spider plot of the dimensions of the Short Form-36 Health Survey


This function creates a spider plot with the 8 health realted quality of life dimensions provided by the Short Form-36 Health Survey.


HRQoLplot(data,legend=FALSE,title="Short Form-36 Health Survey",



a data frame with each column relative to the observations of each SF-36 dimension. The columns of the data frame must be introduced in the following order:

  1. column -> Physical Functioning

  2. column -> Role Physical

  3. column -> Body Pain

  4. column -> General Health

  5. column -> Vitality

  6. column -> Social Functioning

  7. column -> Role Emotional

  8. column -> Mental Health


logical parameter, if TRUE the legend with the name of the rows of the data will appear. Default FALSE.


the title of the plot. Default "Short Form-36 Health Survey".


font size magnification for the labels of the dimension in the plot. If NULL, the font size is fixed at text()'s default. Default NULL.


font size of legend text(). Default 1.


the width of the lines of the plot. Default 3.


the font size of the title. Default 1.


the line type of the plot and the legend. Default 1.


The Short Form-36 Health Survey is a commonly used technique to measure the Health Related Quality of Life (HRQoL) in chronich diseases. It was developed within the Medical Outcomes Study (Ware et al. (1993)). It measures generic HRQoL concepts and provides an objective way to measure HRQoL from the patients point of view by scoring standardized responses to standardized questions. The validity and reability of this instrument has been broadly tested (Stansfeld et al. (1997)). The SF-36 has 36 items, with different answer options. It was constructed to respresent eight health dimensions, which are physical functioning (PF), role physical (RP), body pain (BP), general health (GH), vitality (VT), social functioning (SF), role emotional (RE) and mental health (MH). Each item is assigned to a unique helath dimension. Each of the multi-item dimensions contains two to ten items. The first four dimensions are mainly physical, whereas the last four measure mental aspects of HRQoL. The resulting raw scores are tipically transformed to standardized scale scores from 0 to 100, where a higher score indicates a better health status.

Arostegui et al. (2013) proposed a recoding methodology for the Short Form-36 Health Survey (SF-36) dimensions in order to apply a beta-binomial distribution. The HRQoLplot function plots the SF-36 dimensions scores in a spider plot. Each axis of the plot refers to an expecific SF-36 dimension. Hence, the order of the dimensions in the data frame object of the function has been stablished as it has been explained in Arguments section. Each observation of the data frame, the value of each observation in all the dimensions, is drawn with a line of a different color in the plot. The plot shows the name of each dimension and the maximum number of scores each dimension can obtain in each axis of the plot.


J. Najera-Zuloaga

D.-J. Lee

I. Arostegui

This function depends on the function radarchart of the package fmsb created by Minato Nakazawa.


Arostegui I., Nunez-Anton V. & Quintana J. M. (2013): On the recoding of continuous and bounded indexes to a binomial form: an application to quality-of-life scores, Journal of Applied Statistics, 40, 563-583

See Also

As it is said in the author section, the function depends on the function radarchart of the package fmsb


# We insert the columns in the order that has been determined:
n <- c(20,4,9,20,20,8,3,13)
phi <- runif(8,1,3)
dat <- data.frame(

rownames(dat) <- c("ID1", "ID2", "ID3")

PROreg documentation built on July 12, 2022, 5:06 p.m.

Related to HRQoLplot in PROreg...