Skip to content

Commit

Permalink
labels bit up
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokwee committed Mar 17, 2023
1 parent e38a6ff commit be35a75
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
v3.0-rc1
v3.0-rc2

- V3.0 release candidate 1 (16 mar 2023)
- First beta release (1 mar 2023)
4 changes: 4 additions & 0 deletions components/board.dataview/R/dataview_plot_boxplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ dataview_plot_boxplot_server <- function(id, parent.input, getCountsTable, water
shiny::req(res)

df <- res$counts[, ]
if(nrow(df)>1000) {
sel <- sample(nrow(df),1000)
df <- df[sel,]
}
long.df <- reshape2::melt(df)
colnames(long.df) <- c("gene", "sample", "value")

Expand Down
4 changes: 2 additions & 2 deletions components/board.dataview/R/dataview_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ DataViewUI <- function(id) {
# div(
# class = "row",
div(
class = "col-lg-9 col-xxl-6 col-xxxl-3",
class = "col-lg-9 col-xxl-7 col-xxxl-5",
dataview_plot_correlation_ui(
ns("correlationplot"),
height = imgH,
label = "d"
)
),
div(
class = "col-lg-9 col-xxl-6 col-xxxl-3",
class = "col-lg-9 col-xxl-5 col-xxxl-3",
dataview_plot_tissue_ui(
ns("tissueplot"),
height = imgH,
Expand Down
21 changes: 16 additions & 5 deletions components/board.loading/R/loading_tsneplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ loading_tsne_server <- function(id, pgx.dirRT,
df <- plot_data()
shiny::req(df)

dataset.pos <- df[[2]]
dataset_pos <- df[[2]]
marker_size <- ifelse( nrow(df[[1]]) > 50, 5, 10)

fig <- plotly::plot_ly(
Expand All @@ -109,16 +109,27 @@ loading_tsne_server <- function(id, pgx.dirRT,
size = marker_size,
line = list(
color = omics_colors("super_dark_grey"),
width = 1.2
width = 1.0
)
)
)

dy <- diff(range(dataset_pos[,"y"]))
dbg("[loading_tsneplot.R] range.y=",dy)

fig <- fig %>%
plotly::add_annotations(
x = dataset.pos[, "x"],
y = dataset.pos[, "y"],
text = rownames(dataset.pos),
x = dataset_pos[,"x"],
y = dataset_pos[,"y"],
text = rownames(dataset_pos),
xref = "x",
yref = "y",
## textposition = 'top',
xanchor = "middle",
yanchor = "bottom",
yshift = 0.02*dy,
# ax = 0,
# ay = -0.05 * dy,
showarrow = FALSE
)

Expand Down

0 comments on commit be35a75

Please sign in to comment.