tsne_colored: Save plots from 'custom_feature_plot'.

Description Usage Arguments

View source: R/plotting.R

Description

Save plots from 'custom_feature_plot'.

Usage

1
2
3
tsne_colored(dge, results_path, colour = NULL, fig_name = NULL,
  axes = c("tSNE_1", "tSNE_2"), axes_description = "TSNE", alpha = 1,
  height = 7, width = NA, types = c("PDF", "PDF_no_leg"), ...)

Arguments

dge

Seurat object

results_path

Where to save files.

colour

A gene or type of metadata. Numeric zeroes plotted if '!is.element( colour, AvailableData( dge ) )'.

fig_name

Figure gets named <fig_name>.pdf or <fig_name>.png or similar. If you put a name ending in ".png" or ".pdf", the extension is stripped off.

axes

Character vector of length 2. Name of numeric variables available from 'FetchData'.

axes_description

Character. Used in file paths, so no spaces please.

alpha

Numeric of length 1 between 0 and 1. Point transparency.

height

Passed to ggsave.

width

Passed to ggsave, but when you ask for a legend, it gets stretched a bit to make up for lost horizontal space.

types

Atomic character vector; can be longer than 1 element. If contains "PDF", you get a PDF back. If "PDF_no_leg", you get a PDF with no legend. If "PNG_PDF_split", you get back the points and bare axes in a PNG, plus text-containing elements in a PDF with no points. By default, does all three. Matching is not case sensitive.

...

Additional arguments passed to 'custom_feature_plot'.


maehrlab/thymusatlastools documentation built on May 28, 2019, 2:32 a.m.