Code Monkey home page Code Monkey logo

sdrplot's Introduction

sdRplot.R

(Note: An R package for this funtion is at sdRgraph.)

An R function than can be used for creating semantic differential (SD) inventory plots (see Wikipedia: Semantic differential for more info).

You may have to change some of the graphing parameters, as the need arises, to get better quality plots.

This directory includes:

Creative Commons License
sdRplot 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/sdRplot.

sdrplot's People

Contributors

justineuro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sdrplot's Issues

plot.new has not been called yet

I get the following when I try to run this library within my R Studio (Version 1.0.153) with R version 3.3.0 (2016-05-03)

After loading the library and using the example in the code when I execute sdRplot(5,scale,7,data) I get the following error message

Warning: Ignoring unknown parameters: axes, type, lab, mgp, xaxs, mar Error in title(main = "SD Response Profiles", sub = "", cex.sub = 0.5) : plot.new has not been called yet

missing group data

hi,

applying your function to more than three groups, still only three groups are displayed. As an example, see below, the fourth group is not displayed, i.e., the plot ist just the same as calling only group 1-3.

low<-c("Serious","Slow","Useless","Tiring","Old","Hard","Long")
high<-c("Fun","Fast","Useful","Light","New","Easy","Short")
scale<-c("SA","A","N","A","SA")
grp1means<-c(4.2,4.6,4.3,4.1,4.5,4.5,4.0)
grp2means<-c(3.8,3.9,3.7,4.5,4.4,4.3,4.4)
grp3means<-c(4.5,4.7,4.4,4.2,4.6,4.4,3.9)
grp4means<-c(4.5,3.8,3.9,4.6,3.4,4.5,3.9)
data<-matrix(
cbind(low,high,grp1means,grp2means,grp3means,grp4means),
nrow=7,ncol=5,byrow=FALSE,
dimnames=list(c("I1","I2","I3","I4","I5","I6","I7"),
c("Low","High","Grp1","Grp2","Grp3", "Grp4"))
)
sdRplot(5,scale,7,data)

Thanks a lot,
Barb

Displaying only 1 group

Hi there,

I am now trying to display solely on group in the profile. I am having problems with this issue. Does your code also work with only one group?

Thanks a lot, cheers
Barbara

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.