Closed
Description
Please see my question in stackoverflow
I have an array of values from 0-10 with and 20 groups in each. For some groups or categories all values are 0. When I use violin plot, there is an area calculated which is below 0, but I want to get thedifferent that I got from Seurat package VlnPlot. Is there a way to overcome that problem? Here is a part of java script code:
var my_violin = [];
var vln_layout = {};
var my_violin =[
{
type:"violin",
x:xvalues,
y:my_categories,
points:"all",
pointpos:0,
color:"black",
width:0.75,
marker:{color:"black",size:4},
jitter:1,
span:0,
transforms:[
{
type:"groupby",
groups:my_categories,
styles:my_styles
}
]
}
]
var vln_layout = {title: "my title", xaxis:{showline: false,showgrid: false,zeroline: false,
categoryorder: 'category ascending'}, yaxis: {showline: false,showgrid: false,zeroline:false},
showlegend:true,legend:{traceorder:'normal',categoryorder:"ascending"}};
Plotly.newPlot('myDiv2', my_violin, vln_layout, {showSendToCloud: false});