LabeledScatterPlot: Find better cootrdinates for text labels 'GetYlim' Identifies...

Description Usage Arguments Value Methods (by class) Examples

Description

Find better cootrdinates for text labels GetYlim Identifies a better set of coordinates to place labels in a labeled ggplot scatterplot. #

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
LabeledScatterPlot(coords, ...)

## Default S3 method:
LabeledScatterPlot(coords, group = NULL,
  row.labels = NULL, col.labels = NULL, title = "", legend.title = "",
  fixed.aspect = TRUE, auto.tidy = TRUE, colors = qColors,
  auto.color = 10, general.color = "gray28", cex = 1, ...)

## S3 method for class 'smacof'
LabeledScatterPlot(object, ...)

## S3 method for class 'smacofB'
LabeledScatterPlot(object, ...)

## S3 method for class 'smacofR'
LabeledScatterPlot(object, row.description = "Rows",
  column.description = "Columns", ...)

Arguments

coords

The xy coordinates of the points.

...

Additional arguments.

group

A factor indicating group membership for each point.

row.labels

A vector of labels which will, if supplied, over-ride the rownames of coodinates.

col.labels

A vector of labels which will, if supplied, over-ride the colnames of coodinates.

title

Title for the plot.

legend.title

Title for the legend (which only appears if group is not null).

fixed.aspect

if true, forces the x and y dimensions to be on the same scale.

auto.tidy

Move the labels around so that fewer overlap.

colors

Colors that are cycled through where there is only one series, or, used to demarkate series where there are multiple series.

auto.color

When the number of rows of coords is less than or equal to this, a single color is used to label the points. Otherwise, they cycle throuogh the colors.

general.color

The color to be used in axes and titles.

cex

Relative font, line and glyph size.

object

An object to be plotted.

row.description

A title for the rows.

column.description

A title for the columns.

coords

Relative font, line and glyph size.

Value

p A ggplot plot.

Methods (by class)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# MDS - square
library(smacof)
data(breakfastDissimilarities)
mdsInterval <- smacofSym(breakfastDissimilarities[[4]],
    type = "interval", eps = 1e-12, itmax = 100000)
LabeledScatterPlot(mdsInterval, title = "Interval-scale MDS of Breakfast Dissimilarities")

data(colaPerceptions)
LabeledScatterPlot(colaPerceptions[,c(7,8)], title = "Scatterplot of perceptions data",
                          auto.tidy = TRUE, auto.color = 5, fixed.aspect = TRUE)

NumbersInternational/qrserver documentation built on May 7, 2019, 7:19 p.m.