I am using gvisTimeline for performing Gantt charts, and think that this library is brilliant.
But when the barlabel parameter in gvisTimeline function is set to dataframe column name, which contains Russian words, they comes into ��������, when plotting this timeline.
I've tried changing encoding to UTF-8, but as a result I receive the same question marks and also something like <ce><f2><e1><ee><f0> <ef><f0><ee><e1>.
So I guess the problem is with encoding, but I have no idea how to fix it.
The same names in plotly or ggplot2 diagrams are displayed correctly.
I really appreciate any help you can provide.
Related
I am new to R and I have been using chromoMap library in R to visualize annotation plots and visualizing the feature-associated data. It's a great library and produces great charts. However, I was not able to find any option for changing the x-axis label from length (bp) to anything else. Because of this, I am not able to use any of the produced charts. It sounds like a small issue, but it totally affects the usability of this great package. I followed this tutorial link and produced the below chart. In my chart and all the samples, the x-axis label is fixed and this is my problem and I am looking for a way to just change it.
library(chromoMap)
chr_file_1 = "chr_file_without_centromere.txt"
anno_file_1 = "annotation_pos.txt"
chromoMap(chr_file_1,anno_file_1)
I am wondering if anybody has the same experience ?? This package produces output as a htmlwidget object and therefore I could not change the x-axis lable. Is there any way to modify a htmlwidget object? or Any way to change this bp to something else??
I would need create a chart like the one on the picture. I don't want to draw it by hand, since I need more of them. I prefer R CRAN for drawing charts, but would do also any other programming or plotting program. If possible pdf or eps outputs are preferable. Does anybody have an idea, what type of chart, or which R (or other SW) package would support something like that?
I have found the solution. Orange software package makes the charts.
https://docs.orange.biolab.si/3/data-mining-library/reference/evaluation.cd.html
I'm using the excellent dygraphs R package. One thing that I don't seem to find in the documentation is the possibility of passing a formatting function to dyLegend in the same way it's possible for dyAxis (e.g. valueAxisFormatter). The legend defaults to scientific notation for values in the millions, which most of my audience does not like.
Does anyone know of a way to pass a JS formatting function?
Thank you.
Do you know why the following code cannot creat scaled Venn Diagram?
library("VennDiagram")
area1=138
area2=590
area3=909
n12=123
n13=121
n23=528
n123=119
draw.triple.venn(area1,area2,area3,n12,n23,n13,n123,category=c("GSE35069","GSE41169","GSE42861"),col=2:4,fill=2:4,lwd=2,ind=FALSE,list.order=1:3,scale=T,euler.d=TRUE)
Do you have any other choice to get scale triple Venn Diagram for such situation?
I was able to generate the graph removing ind=FALSE from your same code.
Also, ind is used for that as it reads in the ?draw.triple.venn help page
Boolean indicating whether the function is to automatically draw the
diagram before returning the gList object or not
Also, you should check your code. It reads "cale=T" instead of "scale=T". It happens to me that I miss a letter or a comma somewhere very often.
The problem with scale it's not solved by the correct spelling. I was looking for the answer and found that this question has been already asked here
I am trying to render 739455 data point on a graph using R, but on the x-axis I can not view all those numbers, is there a way I can do that?
I am new to R.
Thank you
As others suggested, try hist, hexbin, plot(density(node)), as these are standard methods for dealing with more points than pixels. (I like to set hist with the parameter breaks = "FD" - it tends to have better breakpoints than the default setting.)
Where you may find some joy is in using the iplots package, an interactive plotting package. The corresponding commands include ihist, iplot, and more. As you have a Mac, the more recent Acinonyx package may be even more fun. You can zoom in and out quite easily. I recommend starting with the iplots package as it has more documentation and a nice site.
If you have a data frame with several variables, not just node, then being able to link the different plots such that brushing points in one plot highlights them in another will make the whole process more stimulating and efficient.
That's not to say that you should ignore hexbin and the other ideas - those are still very useful. Be sure to check out the options for hexbin, e.g. ?hexbin.