PlotStylization: Draw a stylization on an open plot

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/PlotStylization.r

Description

This function takes a Stylization dataframe as input and draws it the information therein (e.g. the vertex locations and transition shapes) to draw the stylization in R's currently active window.

Usage

1
PlotStylization( Stylization )

Arguments

Stylization

A stylization dataframe created with the Stylize function.

Details

It is assumed that the currently active window contains an F0 track (x axis = time, y axis = F0) representing the same soundfile that the stylization is based on. This F0 track plot can be created with the RichVisualization function in this package or any other means. The stylization will be superimposed on top of this F0 track in the form of points and lines.

Value

None. This function is used for its side-effect - adding points and lines to the currently open window.

Author(s)

Aaron Albin (http://www.aaronalbin.com/)

References

This function is referenced on page 67 of

See Also

Stylize for creating the stylization dataframe in the first place. An F0 track can be produced with RichVisualization.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Create paths to the WAV file and Pitch object textfile included in the package
WavePath = paste(R.home("library"),"intonation","HelloWorld.wav",sep="/")
PitchPath = sub(WavePath,pattern=".wav",replacement=".Pitch",fixed=TRUE)

# Generate a RichVisualization plot, including the F0 track that should be stylized
RichVisualization( PitchPath=PitchPath, WavePath=WavePath, 
                   Labels = c("hello","world"), Divisions_ms = c(132,648,1257) )

# Create the stylization dataframe and store it in a variable
Stylization = Stylize(PitchPath, VertexIndices=c(211,489,1123))

# Plot the stylization
PlotStylization(Stylization)

usagi5886/intonation documentation built on Dec. 9, 2019, 3:46 a.m.