(Note: An R
package for this function is at sdRgraph
.)
An R shiny
app that features an R function than can be used for creating semantic differential (SD) inventory plots (see Wikipedia: Semantic differential for more info).
This directory includes the ui.R
and server.R
files for the shiny
app. (Note: Only these two file are strictly needed to run the shiny app. However, you may have to edit some of the graphing parameters in server.R
, as the need arises, to get better quality plots.)
To run this app, at the R
command line (at a Linux terminal R
session or in an rstudio
R
session):
library(shiny)
runApp("PATH_TO_DIRECTORY/sdRgraph-shiny-alpha")
(... or runApp("PATH_TO_DIRECTORY/sdRgraph-shiny-alpha/app")
).
R
then displays a localhost
URL at which the app is running, e.g., http://localhost:4317
. If you are using rstudio
, then an internal R
browser may automatically open; this internal browser allows one to open the app in an external browser with a click on Open in Browser
.
- The data matrix field has to be edited so that the contents are consistent with entered values for the number of scale levels (default of
nx=5
) and descriptors (default ofny = 7
). Please see the function description ofsdRplot.R
for more details.) - A similar
shiny app
is hosted in the Posit Connect Cloud at: URL.
Many thanks!
- R for the software.
- GitHub for hosting the project.
- OpenAI: ChatGPT was used to write the codes for this shiny app based on the codes for
sdRplot.R
. Please access the public ChatGPT session at: URL, for more info. - Posit Connect Cloud for hosting the app.
The following additional related materials from the sdRplot
GitHub repository are also included here for convenience but are not needed for running the shiny app.
- sdRplot.R - the R script for creating SD plots (raw source at sdRplot.R)
- sdRplot-withExamples.R - the R script with two examples (raw source at sdRplot-withExamples.R)
- sdRplot-withExamples.html - a knitr-generated output of the two examples given in the latter part of the script (HTML source at sdRplot-withExamples.html). Note that when you source sdRplot-withExamples.R on the
R
console, only the plot from the second example (single profile) will usually appear on your graphics device unless you set your graphics device to draw two plots on one page, e.g., by usingpar(mfrow=c(2,1))
.
sdRgraph-shiny-alpha by Justine Leon A. Uro is licensed under a Creative Commons Attribution 4.0 International License.
Based on a work at https://github.com/justineuro/sdRgraph-shiny-alpha.