allelematch (version 2.5.1)

amCSSForHTML: Produce cascading style sheet (CSS) for HTML

Description

This returns a string containing the CSS code for embedding in HTML output by amHTML.amPairwise and amHTML.amUnique.

Usage

amCSSForHTML()

Arguments

Value

A string containing a complete cascading style sheet

Author

Paul Galpern (pgalpern@gmail.com)

Details

This function is used internally. It can also be used as a basis to tweak the CSS code if different output formatting and colour-coding are desired. Please see examples.

References

Please see the supplementary documentation for more information. This is available as a vignette. Click on the index link at the bottom of this page to find it.

See Also

amHTML.amPairwise, amHTML.amUnique

Examples

Run this code

if (FALSE) {

data("amExample5")

## Produce CSS file for editing
cat(amCSSForHTML(), file="myCSS.css")

## Edit myCSS.css manually using text editor, then reimport as follows
myCSS <- paste(readLines("myCSS.css"), collapse="\n")

## Perform an allelematch unique analysis
myUnique <- amUnique(amDataset(amExample5, missingCode="-99", indexColumn=1,
    metaDataColumn=2, ignoreColumn="gender"),
alleleMismatch=3)

## Produce HTML output using tweaked CSS
amHTML.amUnique(myUnique, html="myUnique.htm", htmlCSS=myCSS)

}

Run the code above in your browser using DataLab