Learn R Programming

debrowser (version 1.0.8)

add_title_pos: add_title_pos

Description

Adds a title with extra axis to ggvis plot and sets the positions

Usage

add_title_pos(vis, ..., title = "Plot Title", align = "left", angle = 0, dx = 0, dy = 0)

Arguments

vis,
a ggvis plot
...,
any additional arguments
title
for the plot
align
position of the title c('left','right')
angle
of the labels in x axis
dx,
relative x position of the labels in the x axis
dy,
relative y position of the labels in the x axis

Value

deseq2 results

Examples

Run this code
    require(ggvis)
    mtcars %>%
    ggvis(x=~cyl, y=~wt, fill=~mpg) %>%
    group_by(mpg) %>%
    layer_bars() %>%
    add_title_pos(title = "title", angle=310, dy=0, dx=0) %>%
    set_options(width = 400, height = 350)

Run the code above in your browser using DataLab