-
-
Notifications
You must be signed in to change notification settings - Fork 192
/
Copy pathdashbioNeedlePlot.Rd
96 lines (73 loc) · 3.36 KB
/
dashbioNeedlePlot.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
% Auto-generated: do not edit by hand
\name{dashbioNeedlePlot}
\alias{dashbioNeedlePlot}
\title{NeedlePlot component}
\description{
The Needle Plot component is used to visualize large datasets containing categorical or numerical data. The lines and markers in the plot correspond to bars in a histogram.
}
\usage{
dashbioNeedlePlot(id=NULL, clickData=NULL, domainStyle=NULL, height=NULL,
loading_state=NULL, margin=NULL, mutationData=NULL,
needleStyle=NULL, rangeSlider=NULL, width=NULL, xlabel=NULL,
ylabel=NULL)
}
\arguments{
\item{id}{Character. The ID of this component, used to identify dash components
in callbacks. The ID needs to be unique across all of the
components in an app.}
\item{clickData}{Unnamed list. An array of the points on the graph that have been clicked with Plotly.js clickEvents.}
\item{domainStyle}{Lists containing elements 'domaincolor', 'displayminordomains', 'textangle'.
those elements have the following types:
- domaincolor (unnamed list; optional)
- displayminordomains (logical; optional): the prop x sometimes contains smaller domains (e.g. multi-site
mutations), if true, these are displayed
- textangle (numeric; optional): sets the angle at which the domain annotation
text is drawn with respect to the horizontal.. Options for the protein domain coloring}
\item{height}{Numeric | character. Height of the Plot.}
\item{loading_state}{Lists containing elements 'is_loading', 'prop_name', 'component_name'.
those elements have the following types:
- is_loading (logical; optional): determines if the component is loading or not
- prop_name (character; optional): holds which property is loading
- component_name (character; optional): holds the name of the component that is loading. Object that holds the loading state object coming from dash-renderer}
\item{margin}{Named list. Margins of the plot}
\item{mutationData}{Lists containing elements 'x', 'y', 'mutationgroups', 'domains'.
those elements have the following types:
- x (character | unnamed list; optional)
- y (character | unnamed list; optional)
- mutationgroups (list of characters; optional)
- domains (unnamed list; optional). The data that are displayed on the plot}
\item{needleStyle}{Lists containing elements 'stemcolor', 'stemthickness', 'stemconstheight', 'headsize', 'headcolor', 'headsymbol'.
those elements have the following types:
- stemcolor (character; optional)
- stemthickness (numeric; optional)
- stemconstheight (logical; optional)
- headsize (numeric; optional)
- headcolor (unnamed list | character; optional)
- headsymbol (unnamed list | character; optional). Options for the needle marking single site mutations}
\item{rangeSlider}{Logical. If true, enables a rangeslider for the x-axis.}
\item{width}{Numeric | character. Width of the Plot}
\item{xlabel}{Character. Title of the x-axis.}
\item{ylabel}{Character. Title of the y-axis.}
}
\value{named list of JSON elements corresponding to React.js properties and their values}
\examples{
\dontrun{
library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)
library(dashBio)
pathToData <- system.file("extdata/needle_PIK3CA.json", package="dashBio")
mdata <- jsonlite::read_json(pathToData)
app <- Dash$new()
app$layout(
htmlDiv(
list(
dashbioNeedlePlot(
id = 'my-dashbio-needleplot',
mutationData = mdata
)
)
)
)
app$run_server()
}}